mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-13 05:53:06 +01:00
dynamic adding of xdr boat data for implemented n2k conversions
This commit is contained in:
@@ -188,6 +188,10 @@ GwXDRMappingDef *GwXDRMappingDef::fromString(String s)
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
if (rt->direction == GwXDRMappingDef::M_DISABLED || rt->xdrName == ""){
|
||||
delete rt;
|
||||
return NULL;
|
||||
}
|
||||
return rt;
|
||||
}
|
||||
String GwXDRMappingDef::getTransducerName(int instance)
|
||||
|
||||
@@ -166,7 +166,7 @@ class GwXDRFoundMapping : public GwBoatItemNameProvider{
|
||||
String buildXdrEntry(double value);
|
||||
//boat Data info
|
||||
virtual String getBoatItemName(){
|
||||
return getTransducerName();
|
||||
return String("xdr")+getTransducerName();
|
||||
};
|
||||
virtual String getBoatItemFormat(){
|
||||
return "formatXdr"+type->xdrunit; //TODO: use the type def for the correct format
|
||||
|
||||
Reference in New Issue
Block a user