Skip to content

Commit b523e86

Browse files
authored
Merge pull request #645 from LeeLeahy2/zed-fix
GNSS_ZED: Fix maximum array index
2 parents 33aa40e + 88f9ec1 commit b523e86

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
@@ -1091,7 +1091,7 @@ uint8_t GNSS_ZED::getActiveRtcmMessageCount()
10911091
{
10921092
uint8_t count = 0;
10931093

1094-
for (int x = 0; x < MAX_UBX_MSG; x++)
1094+
for (int x = 0; x < MAX_UBX_MSG_RTCM; x++)
10951095
if (settings.ubxMessageRatesBase[x] > 0)
10961096
count++;
10971097
return (count);

0 commit comments

Comments
 (0)