Applied GPS power saving profile with 10 min on, 1 day off cycle
This commit is contained in:
1 parent
54e5bb04e1
commit
a6ae765020
4 files changed
+38
No files matched your search
@@ -161,6 +161,13 @@ private:
|
||||
|
||||
#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