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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user