1
0
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:
2025-08-20 21:33:08 +02:00
parent 318a218470
commit ae9334236b
7 changed files with 29 additions and 11 deletions

View File

@@ -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;