Skip to content

Commit 88f9ec1

Browse files
committed
GNSS_ZED: Fix maximum array index
1 parent d3a1d00 commit 88f9ec1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Firmware/RTK_Everywhere/GNSS_ZED.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1056,7 +1056,7 @@ uint8_t GNSS_ZED::getActiveRtcmMessageCount()
10561056
{
10571057
uint8_t count = 0;
10581058

1059-
for (int x = 0; x < MAX_UBX_MSG; x++)
1059+
for (int x = 0; x < MAX_UBX_MSG_RTCM; x++)
10601060
if (settings.ubxMessageRatesBase[x] > 0)
10611061
count++;
10621062
return (count);

0 commit comments

Comments
 (0)