mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-16 07:23:07 +01:00
change api for getBoatDataValues
This commit is contained in:
@@ -334,6 +334,11 @@ bool GwBoatData::isValid(String name){
|
||||
if (it == values.end()) return false;
|
||||
return it->second->isValid();
|
||||
}
|
||||
GwBoatItemBase* GwBoatData::getBase(String name){
|
||||
auto it=values.find(name);
|
||||
if (it == values.end()) return NULL;
|
||||
return it->second;
|
||||
}
|
||||
double GwBoatData::getDoubleValue(String name,double defaultv){
|
||||
auto it=values.find(name);
|
||||
if (it == values.end()) return defaultv;
|
||||
|
||||
Reference in New Issue
Block a user