1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-14 06:23:07 +01:00

intermediate: dynamic boat data for xdr

This commit is contained in:
wellenvogel
2021-11-24 12:47:41 +01:00
parent 3ef74581de
commit 166d8d826b
3 changed files with 67 additions and 51 deletions

View File

@@ -1222,6 +1222,7 @@ private:
}
GwXDRFoundMapping mapping=xdrMappings->getMapping(XDRPRESSURE,(int)PressureSource,0,PressureInstance);
if (mapping.empty) return;
if (! boatData->update(ActualPressure,sourceId,&mapping)) return;
LOG_DEBUG(GwLog::DEBUG+1,"found pressure mapping %s",mapping.definition->toString().c_str());
addToXdr(mapping.buildXdrEntry(ActualPressure));
finalizeXdr();