Removed redundant brackets
Also corrected orphaned bracket
This commit is contained in:
parent
2bc338ceed
commit
1813399959
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user