Skip to content

Commit

Permalink
Attempt: Send PMREQ with duration 0 on MCU deep-sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
todd-herbert committed Jun 12, 2024
1 parent b7d43c5 commit 9d29ec7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gps/GPS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9d29ec7

Please sign in to comment.