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

allow for multiple counters in user task

This commit is contained in:
andreas
2023-10-14 19:43:50 +02:00
parent 6cdaab4d60
commit 015b4762f8
3 changed files with 39 additions and 17 deletions

View File

@@ -127,10 +127,12 @@ class GwApi{
/**
* access to counters for a task
* thread safe
* use the value returned from addCounter for the other operations
*/
virtual void setCounterDisplayName(const String &){}
virtual void increment(const String &name,bool failed=false){}
virtual void reset(){}
virtual int addCounter(const String &){return -1;}
virtual void increment(int idx,const String &name,bool failed=false){}
virtual void reset(int idx){}
virtual void remove(int idx){}
/**
* not thread safe methods
* accessing boat data must only be executed from within the main thread