mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-04 04:40:50 +00:00
Potentially stop bad things happening on devices without a PMU
This commit is contained in:
parent
f2229e6977
commit
a788f16e91
@ -185,6 +185,18 @@ void doGPSpowersave(bool on)
|
|||||||
setGPSPower(0);
|
setGPSPower(0);
|
||||||
}
|
}
|
||||||
#endif
|
#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)
|
void doDeepSleep(uint64_t msecToWake)
|
||||||
|
Loading…
Reference in New Issue
Block a user