Add ledstrip to task manager

This commit is contained in:
2021-12-19 16:42:45 +01:00
parent 872a7e45fa
commit b3299c8325
2 changed files with 7 additions and 20 deletions

View File

@@ -57,6 +57,9 @@
#ifdef FEATURE_WEBSERVER
#include "webserver.h"
#endif
#ifdef FEATURE_LEDSTRIP
#include "ledstrip.h"
#endif
using namespace std::chrono_literals;
@@ -96,7 +99,7 @@ espcpputils::SchedulerTask schedulerTasksArr[] {
espcpputils::SchedulerTask { "bluetooth", bluetooth_init, bluetooth_update, 100ms },
#endif
#ifdef FEATURE_CAN
espcpputils::SchedulerTask { "can", can::initCan, can::parseCanInput, 50ms },
espcpputils::SchedulerTask { "can", can::initCan, can::parseCanInput, 10ms },
#endif
espcpputils::SchedulerTask { "debuginput", initDebugInput, handleDebugInput, 50ms },
#ifdef FEATURE_SERIAL
@@ -111,6 +114,9 @@ espcpputils::SchedulerTask schedulerTasksArr[] {
#ifdef FEATURE_WEBSERVER
espcpputils::SchedulerTask { "webserver", initWebserver, handleWebserver, 100ms },
#endif
#ifdef FEATURE_LEDSTRIP
espcpputils::SchedulerTask { "ledstrip", initLedStrip, updateLedStrip, 30ms },
#endif
};
} // namespace