public bool ClearAlarm() { if (state == AutoTopOffState.Error) { if (Alarm.CheckAcknowledged(failAlarmIndex)) { Alarm.Clear(failAlarmIndex); state = AutoTopOffState.Standby; return(true); } } return(false); }