diff --git a/firmware/esp32/overland-controller/app_config.cpp b/firmware/esp32/overland-controller/app_config.cpp index 4f59749..b586f37 100644 --- a/firmware/esp32/overland-controller/app_config.cpp +++ b/firmware/esp32/overland-controller/app_config.cpp @@ -114,7 +114,7 @@ void loadConfig() { appConfig.tempSensors[i].priority ); appConfig.tempSensors[i].highAlertEnabled = preferences.getBool( - (prefix + "high_alert_enabled").c_str(), + (prefix + "hi_alert_en").c_str(), appConfig.tempSensors[i].highAlertEnabled ); appConfig.tempSensors[i].highAlertF = preferences.getFloat( @@ -158,7 +158,7 @@ void saveConfig() { preferences.putBool((prefix + "weather").c_str(), appConfig.tempSensors[i].weather); preferences.putString((prefix + "group").c_str(), appConfig.tempSensors[i].group); preferences.putInt((prefix + "priority").c_str(), appConfig.tempSensors[i].priority); - preferences.putBool((prefix + "high_alert_enabled").c_str(), appConfig.tempSensors[i].highAlertEnabled); + preferences.putBool((prefix + "hi_alert_en").c_str(), appConfig.tempSensors[i].highAlertEnabled); preferences.putFloat((prefix + "high_alert_f").c_str(), appConfig.tempSensors[i].highAlertF); }