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) {
SetAlerting();
} else {
SetSwitchState(LV_ANIM_OFF);
}
}