Skip to content

Commit

Permalink
#50: fix handling of GSV messages (completely wrong sat info)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas committed Nov 13, 2024
1 parent 2c87be7 commit a8a0df4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nmea0183ton2k/NMEA0183DataToN2K.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 ||
Expand Down

0 comments on commit a8a0df4

Please sign in to comment.