Open scudre opened 6 years ago
The code is peppered with references to if 'armed', if 'arming', if 'disarming'. Using a state machine to track the alarms current armed or disarmed status could simplify the system and complexity from all of the if else paths.
The code is peppered with references to if 'armed', if 'arming', if 'disarming'. Using a state machine to track the alarms current armed or disarmed status could simplify the system and complexity from all of the if else paths.