Skip to content

Commit 55d198a

Browse files
committed
Convert SIV of 255 ("Do-Not_Use") to zero
1 parent 49bdce7 commit 55d198a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Firmware/RTK_Everywhere/GNSS_Mosaic.ino

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2375,6 +2375,8 @@ void GNSS_MOSAIC::storeBlock4007(SEMP_PARSE_STATE *parse)
23752375
_altitude = (float)sempSbfGetF8(parse, 32);
23762376
_horizontalAccuracy = ((float)sempSbfGetU2(parse, 90)) / 100.0; // Convert from cm to m
23772377
_satellitesInView = sempSbfGetU1(parse, 74);
2378+
if (_satellitesInView == 255)
2379+
_satellitesInView = 0;
23782380
_fixType = sempSbfGetU1(parse, 14) & 0x0F;
23792381
_determiningFixedPosition = (sempSbfGetU1(parse, 14) >> 6) & 0x01;
23802382
_clkBias_ms = sempSbfGetF8(parse, 60);

0 commit comments

Comments
 (0)