mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2026-02-12 07:33:07 +01:00
Implemented string boatdata value WPName for next waypoint
This commit is contained in:
12
src/main.cpp
12
src/main.cpp
@@ -302,9 +302,15 @@ public:
|
||||
if (newValid != list[i]->valid) list[i]->changed=true;
|
||||
list[i]->valid=newValid;
|
||||
if (newValid){
|
||||
double newValue=item->getDoubleValue();
|
||||
if (newValue != list[i]->value) list[i]->changed=true;
|
||||
list[i]->value=newValue;
|
||||
if (item->getCurrentType() == GWTYPE_STRING) {
|
||||
String newValue=item->getStringValue();
|
||||
if (newValue != list[i]->svalue) list[i]->changed=true;
|
||||
list[i]->svalue=newValue;
|
||||
} else {
|
||||
double newValue=item->getDoubleValue();
|
||||
if (newValue != list[i]->value) list[i]->changed=true;
|
||||
list[i]->value=newValue;
|
||||
}
|
||||
int newSource=item->getLastSource();
|
||||
if (newSource != list[i]->source){
|
||||
list[i]->source=newSource;
|
||||
|
||||
Reference in New Issue
Block a user