Skip to content

Commit 1cb04e8

Browse files
authored
Merge pull request #257 from sparkfun/Torch_Web_Config
Fix issue #255 - only call um980UnicoreHandler on gnssPlatform == PLATFORM_UM980
2 parents 4ecc0fa + 856b260 commit 1cb04e8

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Firmware/RTK_Everywhere/Tasks.ino

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -463,11 +463,14 @@ void processUart1Message(SEMP_PARSE_STATE *parse, uint16_t type)
463463

464464
// Determine if this message should be processed by the Unicore library
465465
// Pass NMEA to um980 before applying compensation
466-
if ((type == RTK_UNICORE_BINARY_PARSER_INDEX) || (type == RTK_UNICORE_HASH_PARSER_INDEX) ||
467-
(type == RTK_NMEA_PARSER_INDEX))
466+
if (gnssPlatform == PLATFORM_UM980)
468467
{
469-
// Give this data to the library to update its internal variables
470-
um980UnicoreHandler(parse->buffer, parse->length);
468+
if ((type == RTK_UNICORE_BINARY_PARSER_INDEX) || (type == RTK_UNICORE_HASH_PARSER_INDEX) ||
469+
(type == RTK_NMEA_PARSER_INDEX))
470+
{
471+
// Give this data to the library to update its internal variables
472+
um980UnicoreHandler(parse->buffer, parse->length);
473+
}
471474
}
472475

473476
if (tiltIsCorrecting() == true)

0 commit comments

Comments
 (0)