Implemented string boatdata value WPName for next waypoint

This commit is contained in:
thooge committed 2025-08-20 21:33:08 +02:00
1 parent 318a218470
commit ae9334236b
7 files changed
+29 -11

No files matched your search

+9 -3
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;