mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-14 22:43:07 +01:00
introduce a source field in GwApi::BoatValue
This commit is contained in:
@@ -286,6 +286,11 @@ public:
|
||||
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;
|
||||
list[i]->changed=true;
|
||||
}
|
||||
}
|
||||
list[i]->setFormat(item->getFormat());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user