Skip to content

Commit

Permalink
Show alarm controller state in status icon
Browse files Browse the repository at this point in the history
  • Loading branch information
jmlich committed Dec 22, 2024
1 parent 3f3f859 commit 19e93f5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/displayapp/widgets/StatusIcons.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ void StatusIcons::Update() {
batteryIcon.SetBatteryPercentage(batteryPercent);
}

bool alarmNotSet = (alarmController.State() == Pinetime::Controllers::AlarmController::AlarmState::Not_Set);
lv_obj_set_hidden(alarmIcon, alarmNotSet);
lv_obj_set_hidden(alarmIcon, !alarmController.IsEnabled());

bleState = bleController.IsConnected();
bleRadioEnabled = bleController.IsRadioEnabled();
Expand Down

0 comments on commit 19e93f5

Please sign in to comment.