Skip to content

Commit

Permalink
change sentence header from PY to QY to work in opencpn
Browse files Browse the repository at this point in the history
  • Loading branch information
seandepagnier committed May 31, 2022
1 parent 284ae5f commit bed6191
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arduino/weathersensors/weathersensors.ino
Expand Up @@ -498,8 +498,8 @@ void send_nmea(const char *buf)
const char *fmt;
uint8_t ck;
if(eeprom_data.sensor_type == 0) {
fmt = PSTR("$PY%s*%02x\r\n");
ck = 0x09; // 'P' ^ 'Y'
fmt = PSTR("$QY%s*%02x\r\n");
ck = 0x08; // 'Q' ^ 'Y'
} else {
fmt = PSTR("$AR%s*%02x\r\n");
ck = 0x13; // 'A' ^ 'R'
Expand Down

0 comments on commit bed6191

Please sign in to comment.