gps_cli: gps also restored on sensors and rooms

This commit is contained in:
Florent de Lamotte
2025-10-06 15:30:18 +02:00
parent 6ed8e9d514
commit 9e3c2fc9d9
6 changed files with 25 additions and 10 deletions

View File

@@ -149,4 +149,9 @@ private:
void sendAlert(const ClientInfo* c, Trigger* t);
#if ENV_INCLUDE_GPS == 1
void applyGpsPrefs() {
sensors.setSettingByKey("gps", _prefs.gps_enabled?"1":"0");
}
#endif
};