mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-13 05:53:06 +01:00
make boatData names availabel as constants
This commit is contained in:
@@ -160,6 +160,7 @@ public:
|
|||||||
virtual ~GwBoatItemNameProvider() {}
|
virtual ~GwBoatItemNameProvider() {}
|
||||||
};
|
};
|
||||||
#define GWBOATDATA(type,name,time,fmt) \
|
#define GWBOATDATA(type,name,time,fmt) \
|
||||||
|
GWSC(_##name); \
|
||||||
GwBoatItem<type> *name=new GwBoatItem<type>(F(#name),GwBoatItemBase::fmt,time,&values) ;
|
GwBoatItem<type> *name=new GwBoatItem<type>(F(#name),GwBoatItemBase::fmt,time,&values) ;
|
||||||
#define GWSPECBOATDATA(clazz,name,time,fmt) \
|
#define GWSPECBOATDATA(clazz,name,time,fmt) \
|
||||||
clazz *name=new clazz(F(#name),GwBoatItemBase::fmt,time,&values) ;
|
clazz *name=new clazz(F(#name),GwBoatItemBase::fmt,time,&values) ;
|
||||||
|
|||||||
Reference in New Issue
Block a user