Potentially stop bad things happening on devices without a PMU

This commit is contained in:
code8buster 2022-12-15 12:02:04 -05:00
parent f2229e6977
commit a788f16e91

View File

@ -185,6 +185,18 @@ void doGPSpowersave(bool on)
setGPSPower(0);
}
#endif
#ifdef PIN_GPS_WAKE
if (on)
{
DEBUG_MSG("Waking GPS");
gps->forceWake(1);
}
else
{
DEBUG_MSG("GPS entering sleep");
notifyGPSSleep.notifyObservers(NULL);
}
#endif
}
void doDeepSleep(uint64_t msecToWake)