mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-26 09:59:01 +00:00
Correct UBX-CFG-PMS message
This commit is contained in:
parent
7c98445ca3
commit
ecdb75aae0
@ -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
|
// must be smaller than the period. It is only valid when the powerSetupValue is set to Interval; otherwise, it must
|
||||||
// be set to '0'.
|
// be set to '0'.
|
||||||
if (uBloxProtocolVersion >= 18) {
|
if (uBloxProtocolVersion >= 18) {
|
||||||
byte UBX_CFG_PMS[14] = {
|
byte UBX_CFG_PMS[16] = {
|
||||||
0xB5, 0x62, // UBX sync characters
|
0xB5, 0x62, // UBX sync characters
|
||||||
0x06, 0x86, // Message class and ID (UBX-CFG-PMS)
|
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)
|
0x00, // Version (0)
|
||||||
0x03, // Power setup value
|
0x03, // Power setup value
|
||||||
0x00, 0x00, // period: not applicable, set to 0
|
0x00, 0x00, // period: not applicable, set to 0
|
||||||
0x00, 0x00, // onTime: 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
|
0x00, 0x00 // Placeholder for checksum, will be calculated next
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user