diff --git a/src/displayapp/screens/settings/SettingSetTime.cpp b/src/displayapp/screens/settings/SettingSetTime.cpp index 8d64dd92..7e4215d9 100644 --- a/src/displayapp/screens/settings/SettingSetTime.cpp +++ b/src/displayapp/screens/settings/SettingSetTime.cpp @@ -155,12 +155,11 @@ void SettingSetTime::HandleButtonPress(lv_obj_t *object, lv_event_t event) { if (event != LV_EVENT_CLICKED) return; - if (settingsController.GetClockType() == Controllers::Settings::ClockType::H24) { + if (settingsController.GetClockType() == Controllers::Settings::ClockType::H24) is24H = true; - } - else { + else is24H = false; - } + if (object == btnHoursPlus) { hoursValue++; if (hoursValue > 23) @@ -212,4 +211,3 @@ void SettingSetTime::HandleButtonPress(lv_obj_t *object, lv_event_t event) { lv_btn_set_state(btnSetTime, LV_BTN_STATE_DISABLED); } } -}