mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-23 03:00:56 +00:00
refactor and avoid needless probe (#2799)
* Use UINT32_MAX to indicate no configured GPS * Refactor GPS to not probe if pins not defined * Minor cleanups related to rework * Use Named Constructor to clean up code * Actually disable the GPS thread * Don't actually disable the GPS thread * Move doGPSPowerSave to GPS class * Make sure to set GPS awake on triple-click --------- Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
This commit is contained in:
@@ -19,7 +19,7 @@ extern XPowersLibInterface *PMU;
|
||||
#endif
|
||||
|
||||
void setGPSPower(bool on);
|
||||
void doGPSpowersave(bool on);
|
||||
|
||||
// Perform power on init that we do on each wake from deep sleep
|
||||
void initDeepSleep();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user