From ecdb75aae08ea3b059856e085f4b76f7796e9635 Mon Sep 17 00:00:00 2001 From: Jonathan Bennett Date: Sun, 3 Sep 2023 02:16:29 -0500 Subject: [PATCH] Correct UBX-CFG-PMS message --- src/gps/GPS.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gps/GPS.cpp b/src/gps/GPS.cpp index 650cefd57..4f1641617 100644 --- a/src/gps/GPS.cpp +++ b/src/gps/GPS.cpp @@ -557,14 +557,15 @@ bool GPS::setupGPS() // must be smaller than the period. It is only valid when the powerSetupValue is set to Interval; otherwise, it must // be set to '0'. if (uBloxProtocolVersion >= 18) { - byte UBX_CFG_PMS[14] = { + byte UBX_CFG_PMS[16] = { 0xB5, 0x62, // UBX sync characters 0x06, 0x86, // Message class and ID (UBX-CFG-PMS) - 0x06, 0x00, // Length of payload (6 bytes) + 0x08, 0x00, // Length of payload (6 bytes) 0x00, // Version (0) 0x03, // Power setup value 0x00, 0x00, // period: not applicable, set to 0 0x00, 0x00, // onTime: not applicable, set to 0 + 0x97, 0x6F, // reserved, generated by u-center 0x00, 0x00 // Placeholder for checksum, will be calculated next };