bluetooth to taskmanager migrated

This commit is contained in:
2021-12-19 02:37:48 +01:00
parent 304ce9925f
commit 2ec19d2def
6 changed files with 56 additions and 34 deletions

View File

@@ -38,6 +38,9 @@
#include "time_bobbycar.h"
#endif
#include "potis.h"
#ifdef FEATURE_BLUETOOTH
#include "bluetooth_bobby.h"
#endif
using namespace std::chrono_literals;
@@ -73,6 +76,9 @@ espcpputils::SchedulerTask schedulerTasksArr[] {
espcpputils::SchedulerTask { "time", initTime, updateTime, 100ms },
#endif
espcpputils::SchedulerTask { "potis", initPotis, readPotis, 20ms },
#ifdef FEATURE_BLUETOOTH
espcpputils::SchedulerTask { "bluetooth", bluetooth_init, bluetooth_update, 100ms },
#endif
};
} // namespace