mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-24 17:32:18 +00:00
Fix bug sending wrong sleep command to U-Blox chips
The "U-Blox readable" patch introduced a bug where sleep commands for the 10 and other versions were reversed.
This commit is contained in:
parent
1096973828
commit
411834afba
@ -849,7 +849,7 @@ void GPS::setPowerUBLOX(bool on, uint32_t sleepMs)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Determine hardware version
|
// Determine hardware version
|
||||||
if (gnssModel == GNSS_MODEL_UBLOX10) {
|
if (gnssModel != GNSS_MODEL_UBLOX10) {
|
||||||
// Encode the sleep time in millis into the packet
|
// Encode the sleep time in millis into the packet
|
||||||
for (int i = 0; i < 4; i++)
|
for (int i = 0; i < 4; i++)
|
||||||
gps->_message_PMREQ[0 + i] = sleepMs >> (i * 8);
|
gps->_message_PMREQ[0 + i] = sleepMs >> (i * 8);
|
||||||
|
Loading…
Reference in New Issue
Block a user