1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-13 05:53:06 +01:00

add exampleTask

This commit is contained in:
wellenvogel
2021-11-25 19:55:13 +01:00
parent 5b39145e4f
commit 99ba4b3d8e
4 changed files with 94 additions and 0 deletions

View File

@@ -61,6 +61,7 @@ const unsigned long HEAP_REPORT_TIME=2000; //set to 0 to disable heap reporting
#include "GwLeds.h"
#include "GwCounter.h"
#include "GwXDRMappings.h"
#include "GwExampleTask.h"
//NMEA message channels
@@ -235,6 +236,9 @@ public:
virtual GwLog* getLogger(){
return &logger;
}
virtual GwBoatData *getBoatData(){
return &boatData;
}
};
bool delayedRestart(){
@@ -660,6 +664,7 @@ void setup() {
startAddOnTask(handleButtons,100);
setLedMode(LED_GREEN);
startAddOnTask(handleLeds,101);
startAddOnTask(exampleTask,102);
logger.logDebug(GwLog::LOG,"setup done");
}
//*****************************************************************************