1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-13 05:53:06 +01:00

#39: do not send 129539 from GSA if fix mode is not 2 or 3 - also do not set xDOP

This commit is contained in:
andreas
2022-03-27 17:32:59 +02:00
parent cf3e1fb0b3
commit 16a2ea32cb

View File

@@ -782,7 +782,10 @@ private:
return;
}
int fixMode=atoi(msg.Field(1));
if (fixMode != 2 && fixMode != 3){
LOG_DEBUG(GwLog::DEBUG,"no fix in GSA, mode=%d",fixMode);
return;
}
tN2kMsg n2kMsg;
tN2kGNSSDOPmode mode=N2kGNSSdm_Unavailable;
if (fixMode >= 0 && fixMode <=3) mode=(tN2kGNSSDOPmode)fixMode;