Removed redundant brackets

Also corrected orphaned bracket
This commit is contained in:
Eli Weiss 2022-01-03 18:22:42 -05:00 committed by JF
parent 2bc338ceed
commit 1813399959

View File

@ -155,12 +155,11 @@ void SettingSetTime::HandleButtonPress(lv_obj_t *object, lv_event_t event) {
if (event != LV_EVENT_CLICKED) if (event != LV_EVENT_CLICKED)
return; return;
if (settingsController.GetClockType() == Controllers::Settings::ClockType::H24) { if (settingsController.GetClockType() == Controllers::Settings::ClockType::H24)
is24H = true; is24H = true;
} else
else {
is24H = false; is24H = false;
}
if (object == btnHoursPlus) { if (object == btnHoursPlus) {
hoursValue++; hoursValue++;
if (hoursValue > 23) 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); lv_btn_set_state(btnSetTime, LV_BTN_STATE_DISABLED);
} }
} }
}