From bed61916422ce4505e03b092f262cbc96a985866 Mon Sep 17 00:00:00 2001 From: Sean D'Epagnier Date: Tue, 31 May 2022 08:32:50 -0400 Subject: [PATCH] change sentence header from PY to QY to work in opencpn --- arduino/weathersensors/weathersensors.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arduino/weathersensors/weathersensors.ino b/arduino/weathersensors/weathersensors.ino index ab5f66ed..71d88d5e 100644 --- a/arduino/weathersensors/weathersensors.ino +++ b/arduino/weathersensors/weathersensors.ino @@ -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'