From a8a0df4b70c42e05ba0ac04b6e7317fe733d4947 Mon Sep 17 00:00:00 2001 From: andreas Date: Wed, 13 Nov 2024 18:07:50 +0100 Subject: [PATCH] #50: fix handling of GSV messages (completely wrong sat info) --- lib/nmea0183ton2k/NMEA0183DataToN2K.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nmea0183ton2k/NMEA0183DataToN2K.cpp b/lib/nmea0183ton2k/NMEA0183DataToN2K.cpp index be01cac..bd593d5 100644 --- a/lib/nmea0183ton2k/NMEA0183DataToN2K.cpp +++ b/lib/nmea0183ton2k/NMEA0183DataToN2K.cpp @@ -860,7 +860,7 @@ class NMEA0183DataToN2KFunctions : public NMEA0183DataToN2K LOG_DEBUG(GwLog::DEBUG,"GSV invalid current %u %s",current,msg.line); return; } - for (int idx=2;idx < msg.FieldCount();idx+=4){ + for (int idx=3;idx < msg.FieldCount();idx+=4){ if (msg.FieldLen(idx) < 1 || msg.FieldLen(idx+1) < 1 || msg.FieldLen(idx+2) < 1 ||