mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-13 05:53:06 +01:00
#50: fix handling of GSV messages (completely wrong sat info)
This commit is contained in:
@@ -860,7 +860,7 @@ private:
|
|||||||
LOG_DEBUG(GwLog::DEBUG,"GSV invalid current %u %s",current,msg.line);
|
LOG_DEBUG(GwLog::DEBUG,"GSV invalid current %u %s",current,msg.line);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
for (int idx=2;idx < msg.FieldCount();idx+=4){
|
for (int idx=3;idx < msg.FieldCount();idx+=4){
|
||||||
if (msg.FieldLen(idx) < 1 ||
|
if (msg.FieldLen(idx) < 1 ||
|
||||||
msg.FieldLen(idx+1) < 1 ||
|
msg.FieldLen(idx+1) < 1 ||
|
||||||
msg.FieldLen(idx+2) < 1 ||
|
msg.FieldLen(idx+2) < 1 ||
|
||||||
|
|||||||
Reference in New Issue
Block a user