@@ -43,15 +43,15 @@ void um980EomHandler(UNICORE_PARSE_STATE *parse)
4343 }
4444 else if (parse->messageType == SFE_SENTENCE_TYPE_NMEA)
4545 {
46- // NMEA Handler
46+ // NMEA Handler
4747 }
4848 else if (parse->messageType == SFE_SENTENCE_TYPE_UNICORE_BINARY)
4949 {
5050 ptrUM980->unicoreHandler (parse->buffer , parse->length );
5151 }
5252 else if (parse->messageType == SFE_SENTENCE_TYPE_RTCM)
5353 {
54- // RTCM handler
54+ // RTCM handler
5555 }
5656}
5757
@@ -272,13 +272,20 @@ void um980NmeaLineTermination(UNICORE_PARSE_STATE *parse, uint8_t data)
272272 else
273273 {
274274 if (parse->messageType == SFE_SENTENCE_TYPE_NMEA)
275+ {
275276 ptrUM980->debugPrintf (" Bad CRC on NMEA." );
277+ ptrUM980->debugPrintf (" Expecting: 0x%02X Found: 0x%02X." , checksum, parse->check );
278+ }
276279 else if (parse->messageType == SFE_SENTENCE_TYPE_UNICORE_POUND_RESPONSE)
280+ {
277281 ptrUM980->debugPrintf (" Bad CRC on Unicore # Response." );
282+ ptrUM980->debugPrintf (" Expecting: 0x%02X Found: 0x%02X." , checksum, parse->check );
283+ }
278284 else if (parse->messageType == SFE_SENTENCE_TYPE_UNICORE_COMMAND_RESPONSE)
285+ {
279286 ptrUM980->debugPrintf (" Bad CRC on Unicore Command." );
280-
281- ptrUM980-> debugPrintf ( " Expecting: 0x%08X Found: 0x%08X. " , checksum, parse-> check );
287+ ptrUM980-> debugPrintf ( " Expecting: 0x%08X Found: 0x%08X. " , checksum, parse-> check );
288+ }
282289
283290 parse->messageType = SFE_SENTENCE_TYPE_NONE;
284291 }
@@ -402,7 +409,7 @@ void um980UnicoreReadData(UNICORE_PARSE_STATE *parse, uint8_t data)
402409 else
403410 {
404411 ptrUM980->debugPrintf (" Unicore CRC failed. Sentence CRC: 0x%02X Calculated CRC: 0x%02X\r\n " , sentenceCRC,
405- calculatedCRC);
412+ calculatedCRC);
406413 }
407414
408415 // Search for another preamble byte
@@ -518,7 +525,7 @@ void um980RtcmReadCrc(UNICORE_PARSE_STATE *parse, uint8_t data)
518525 else
519526 {
520527 ptrUM980->debugPrintf (" RTCM CRC failed length: %d sentence CRC: 0x%02X calc CRC: 0x%02X\r\n " , parse->length ,
521- sentenceCRC, parse->check );
528+ sentenceCRC, parse->check );
522529 }
523530
524531 // Search for another preamble byte
0 commit comments