1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-14 22:43:07 +01:00

handle buttons and leds completely as user tasks

This commit is contained in:
andreas
2023-10-24 15:58:43 +02:00
parent 91c1e6f85c
commit 0e10fcfee2
8 changed files with 91 additions and 57 deletions

View File

@@ -53,8 +53,6 @@ const unsigned long HEAP_REPORT_TIME=2000; //set to 0 to disable heap reporting
#include "GwSerial.h"
#include "GwWebServer.h"
#include "NMEA0183DataToN2K.h"
#include "GwButtons.h"
#include "GwLedTask.h"
#include "GwCounter.h"
#include "GwXDRMappings.h"
#include "GwSynchronized.h"
@@ -852,8 +850,6 @@ void setup() {
NMEA2000.Open();
logger.logDebug(GwLog::LOG,"starting addon tasks");
logger.flush();
setLedMode(LED_GREEN);
userCodeHandler.startAddonTask(F("handleButtons"),handleButtons,100);
{
GWSYNCHRONIZED(&mainLock);
userCodeHandler.startUserTasks(MIN_USER_TASK);