GPS PowerSaving v2: Added GPS wake up upon telemtry requests for companions. Bug fixes for "gps" CLI.
This commit is contained in:
1 parent
d9c42964eb
commit
1aa8ae90fb
16 files changed
+177
-201
No files matched your search
@@ -162,15 +162,8 @@ private:
|
||||
|
||||
void sendAlert(const ClientInfo* c, Trigger* t);
|
||||
|
||||
#if ENV_INCLUDE_GPS == 1
|
||||
#if ENV_INCLUDE_GPS == 1
|
||||
void applyGpsPrefs() {
|
||||
// If powersaving on, apply powersaving to sensors
|
||||
if (_prefs.powersaving_enabled) {
|
||||
sensors.powersaving_enabled = true;
|
||||
} else {
|
||||
sensors.powersaving_enabled = false;
|
||||
}
|
||||
|
||||
sensors.setSettingValue("gps", _prefs.gps_enabled?"1":"0");
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user