Moved ota to taskmanager

This commit is contained in:
feedc0de committed 2021-12-19 04:42:01 +01:00
1 parent a1946e2e02
commit 04515eecb5
2 files changed
+6 -13

No files matched your search

+6
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