From c09a849396b799c2874286e60d5f06a05d9c5849 Mon Sep 17 00:00:00 2001 From: Nicolae Hodos Date: Tue, 7 Dec 2021 10:14:15 +0100 Subject: [PATCH] move loop tasks in their own namespaces --- src/ota.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ota.h b/src/ota.h index 69b736f..b834a8a 100644 --- a/src/ota.h +++ b/src/ota.h @@ -1,7 +1,9 @@ #include -namespace Ota -{ +namespace Ota { + + void loop(); + Task tLoop(TASK_IMMEDIATE, TASK_FOREVER, loop, &ts, true); void setup() { ArduinoOTA.onStart([]() { @@ -25,6 +27,6 @@ namespace Ota } void loop() { - ArduinoOTA.handle(); + ArduinoOTA.handle(); } }