Merge pull request #5016 from meshtastic/fifieldt-patch-1

Fix bug sending wrong sleep command to U-Blox chips
This commit is contained in:
Thomas Göttgens 2024-10-10 12:18:27 +02:00 committed by GitHub
commit 23a52ee625
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -849,7 +849,7 @@ void GPS::setPowerUBLOX(bool on, uint32_t sleepMs)
}
// Determine hardware version
if (gnssModel == GNSS_MODEL_UBLOX10) {
if (gnssModel != GNSS_MODEL_UBLOX10) {
// Encode the sleep time in millis into the packet
for (int i = 0; i < 4; i++)
gps->_message_PMREQ[0 + i] = sleepMs >> (i * 8);
@ -1714,4 +1714,4 @@ void GPS::toggleGpsMode()
enable();
}
}
#endif // Exclude GPS
#endif // Exclude GPS