mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-13 05:53:06 +01:00
handle priorities in boat data
This commit is contained in:
@@ -66,15 +66,13 @@ private:
|
||||
}
|
||||
bool updateDouble(GwBoatItem<double> *target,double v, int sourceId){
|
||||
if (v != NMEA0183DoubleNA){
|
||||
target->update(v,sourceId);
|
||||
return true;
|
||||
return target->update(v,sourceId);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool updateUint32(GwBoatItem<uint32_t> *target,uint32_t v, int sourceId){
|
||||
if (v != NMEA0183UInt32NA){
|
||||
target->update(v,sourceId);
|
||||
return true;
|
||||
return target->update(v,sourceId);
|
||||
}
|
||||
return v;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user