Skip to content

Commit bffd1ee

Browse files
authored
fix: Fix standby timeout
1 parent a8109ff commit bffd1ee

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/display/core/Settings.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Settings::Settings() {
4040
homeAssistantPort = preferences.getInt("ha_p", 1883);
4141
homeAssistantUser = preferences.getString("ha_u", "");
4242
homeAssistantPassword = preferences.getString("ha_pw", "");
43-
standbyTimeout = preferences.getInt("st", 0);
43+
standbyTimeout = preferences.getInt("sbt", DEFAULT_STANDBY_TIMEOUT_MS);
4444
timezone = preferences.getString("tz", DEFAULT_TIMEZONE);
4545
preferences.end();
4646

@@ -280,7 +280,7 @@ void Settings::doSave() {
280280
preferences.putString("ha_u", homeAssistantUser);
281281
preferences.putString("ha_pw", homeAssistantPassword);
282282
preferences.putString("tz", timezone);
283-
preferences.putInt("st", standbyTimeout);
283+
preferences.putInt("sbt", standbyTimeout);
284284
preferences.end();
285285
}
286286

0 commit comments

Comments
 (0)