mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2026-11-17 13:11:27 +01:00
handle the leds as user task
This commit is contained in:
1 parent
155c7a8d1c
commit
91c1e6f85c
4 files changed
+9
-8
No files matched your search
+2
-3
@@ -54,7 +54,7 @@ const unsigned long HEAP_REPORT_TIME=2000; //set to 0 to disable heap reporting
|
||||
#include "GwWebServer.h"
|
||||
#include "NMEA0183DataToN2K.h"
|
||||
#include "GwButtons.h"
|
||||
#include "GwLeds.h"
|
||||
#include "GwLedTask.h"
|
||||
#include "GwCounter.h"
|
||||
#include "GwXDRMappings.h"
|
||||
#include "GwSynchronized.h"
|
||||
@@ -852,9 +852,8 @@ void setup() {
|
||||
NMEA2000.Open();
|
||||
logger.logDebug(GwLog::LOG,"starting addon tasks");
|
||||
logger.flush();
|
||||
userCodeHandler.startAddonTask(F("handleButtons"),handleButtons,100);
|
||||
setLedMode(LED_GREEN);
|
||||
userCodeHandler.startAddonTask(F("handleLeds"),handleLeds,101);
|
||||
userCodeHandler.startAddonTask(F("handleButtons"),handleButtons,100);
|
||||
{
|
||||
GWSYNCHRONIZED(&mainLock);
|
||||
userCodeHandler.startUserTasks(MIN_USER_TASK);
|
||||
|
||||
Reference in new issue
Block a user