bug #376 wip - we now kill gps power when it is supposed to be asleep

This commit is contained in:
Kevin Hester
2020-10-05 15:29:26 +08:00
parent b072eec4ac
commit 3c1c11e439
7 changed files with 69 additions and 60 deletions

View File

@@ -79,6 +79,9 @@ class GPS
void forceWake(bool on);
protected:
/// Do gps chipset specific init, return true for success
virtual bool setupGPS() = 0;
/// If possible force the GPS into sleep/low power mode
virtual void sleep() {}
@@ -134,7 +137,6 @@ class GPS
* Tell users we have new GPS readings
*/
void publishUpdate();
};
extern GPS *gps;