Moved ota to taskmanager

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

View File

@@ -48,6 +48,9 @@
#ifdef FEATURE_SERIAL
#include "serial_bobby.h"
#endif
#ifdef FEATURE_OTA
#include "ota.h"
#endif
using namespace std::chrono_literals;
@@ -93,6 +96,9 @@ espcpputils::SchedulerTask schedulerTasksArr[] {
#ifdef FEATURE_SERIAL
espcpputils::SchedulerTask { "serial", initSerial, updateSerial, 50ms },
#endif
#ifdef FEATURE_OTA
espcpputils::SchedulerTask { "ota", initOta, handleOta, 50ms },
#endif
};
} // namespace