Fixed for GPS PowerSaving v2 on T1000e

This commit is contained in:
Kevin Le committed 2026-09-27 19:21:29 +07:00
1 parent f00424bdb9
commit b049177b81
1 file changed
+2
+2
View File
@@ -235,8 +235,10 @@ const char* T1000SensorManager::getSettingValue(int i) const {
bool T1000SensorManager::setSettingValue(const char* name, const char* value) {
if (strcmp(name, "gps") == 0) {
if (strcmp(value, "0") == 0) {
gps_active = false; // Disabled by CLI or App
sleep_gps(); // sleep for faster fix !
} else {
gps_active = true; // Enabled by CLI or App
start_gps();
}
return true;