mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-14 06:23:07 +01:00
add some compile time checks for necessary i2c definitions
This commit is contained in:
@@ -191,6 +191,14 @@ class GwApi{
|
||||
virtual GwBoatData *getBoatData()=0;
|
||||
virtual ~GwApi(){}
|
||||
};
|
||||
|
||||
/**
|
||||
* a simple generic function to create runtime errors if some necessary values are not defined
|
||||
*/
|
||||
template<typename... T>
|
||||
static void checkDef(T... args){};
|
||||
|
||||
|
||||
#ifndef DECLARE_USERTASK
|
||||
#define DECLARE_USERTASK(task)
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user