From 16a2ea32cb4dc3058bf925183bb13177b52f3eda Mon Sep 17 00:00:00 2001 From: andreas Date: Sun, 27 Mar 2022 17:32:59 +0200 Subject: [PATCH] #39: do not send 129539 from GSA if fix mode is not 2 or 3 - also do not set xDOP --- lib/nmea0183ton2k/NMEA0183DataToN2K.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/nmea0183ton2k/NMEA0183DataToN2K.cpp b/lib/nmea0183ton2k/NMEA0183DataToN2K.cpp index bc0f468..d9fabba 100644 --- a/lib/nmea0183ton2k/NMEA0183DataToN2K.cpp +++ b/lib/nmea0183ton2k/NMEA0183DataToN2K.cpp @@ -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;