From 9d29ec7603a88056b9115796b29b5023165a93bb Mon Sep 17 00:00:00 2001 From: Todd Herbert Date: Thu, 13 Jun 2024 01:06:28 +1200 Subject: [PATCH] Attempt: Send PMREQ with duration 0 on MCU deep-sleep --- src/gps/GPS.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gps/GPS.cpp b/src/gps/GPS.cpp index 8d46742baa..6a8d6d59c1 100644 --- a/src/gps/GPS.cpp +++ b/src/gps/GPS.cpp @@ -1131,7 +1131,8 @@ int GPS::prepareDeepSleep(void *unused) { LOG_INFO("GPS deep sleep!\n"); - setAwake(false); + // Manually enter GPSPowerState::OFF, so we can ensure a PMREQ with duration 0 has been sent + setGPSPower(false, false, 0); return 0; }