mirror of
https://github.com/Laxilef/OTGateway.git
synced 2026-12-03 03:33:03 +05:00
refactor: simplify task configuration and registration
This commit is contained in:
1 parent
d19f6aaa52
commit
4004927ecd
9 files changed
+38
-55
No files matched your search
+1
-2
@@ -86,6 +86,5 @@ static Task ledStatusTask("LED status", [](void*) {
|
||||
});
|
||||
|
||||
void initLeds() {
|
||||
ledStatusTask.setInterval(100);
|
||||
appTaskManager.addTask(ledStatusTask);
|
||||
appTaskManager.addTask(ledStatusTask.setInterval(100));
|
||||
}
|
||||
Reference in new issue
Block a user