moved ble to taskmanager

This commit is contained in:
2021-12-19 04:48:12 +01:00
parent 04515eecb5
commit be53c39ebf
2 changed files with 6 additions and 20 deletions

View File

@ -51,6 +51,9 @@
#ifdef FEATURE_OTA
#include "ota.h"
#endif
#ifdef FEATURE_BLE
#include "ble_bobby.h"
#endif
using namespace std::chrono_literals;
@ -99,6 +102,9 @@ espcpputils::SchedulerTask schedulerTasksArr[] {
#ifdef FEATURE_OTA
espcpputils::SchedulerTask { "ota", initOta, handleOta, 50ms },
#endif
#ifdef FEATURE_BLE
espcpputils::SchedulerTask { "ble", initBle, handleBle, 100ms },
#endif
};
} // namespace