Skip to content

Commit

Permalink
Update NmeaXDR.h
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrouch authored Sep 13, 2024
1 parent 2ae5743 commit 5199fa5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions bbn_wave_freq_m5atomS3/NmeaXDR.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,13 @@
*/

#include "NmeaChecksum.h"

void gen_nmea0183_xdr(const char *nmea_fmt, float value) {
char nmea_part[82];
snprintf(nmea_part, 76, nmea_fmt, value);
int checksum = nmea0183_checksum(nmea_part);
Serial.printf("%s*%02d\r\n", nmea_part, checksum);
}

#endif

0 comments on commit 5199fa5

Please sign in to comment.