Fix switch default state

This commit is contained in:
Riku Isokoski 2022-02-02 20:59:06 +02:00 committed by JF
parent 0930a79041
commit 76f63ed76a

View file

@ -116,6 +116,8 @@ Alarm::Alarm(DisplayApp* app, Controllers::AlarmController& alarmController, Pin
if (alarmController.State() == Controllers::AlarmController::AlarmState::Alerting) { if (alarmController.State() == Controllers::AlarmController::AlarmState::Alerting) {
SetAlerting(); SetAlerting();
} else {
SetSwitchState(LV_ANIM_OFF);
} }
} }