1
0
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:
andreas
2021-11-01 11:41:41 +01:00
parent 14b04fb4a0
commit 0bdcc8fff2
4 changed files with 20 additions and 10 deletions

View File

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