Index: firmware/App/Controllers/Switches.c =================================================================== diff -u -r3d72b777cf1ceb673d118341c46e2d6d5b7b75f5 -r34e8d77ff4891ad697f1017af3b7e9bfaadbd753 --- firmware/App/Controllers/Switches.c (.../Switches.c) (revision 3d72b777cf1ceb673d118341c46e2d6d5b7b75f5) +++ firmware/App/Controllers/Switches.c (.../Switches.c) (revision 34e8d77ff4891ad697f1017af3b7e9bfaadbd753) @@ -119,6 +119,27 @@ // If the bit is 0, the door switch is open, because it is normally open switch // TODO investigate the polarity of the pump track switch once it tied to the cartridge latch switchesStatus[ i ].status.data = currentSwitchStatus; + + // Clear active Alarms + switch ( i ) + { + case FRONT_DOOR: + if ( STATE_CLOSED == currentSwitchStatus ) + { + clearAlarmCondition( ALARM_ID_CARTRIDGE_DOOR_OPENED ); + } + break; + + case PUMP_TRACK_SWITCH: + if ( STATE_CLOSED == currentSwitchStatus ) + { + clearAlarmCondition( ALARM_ID_PUMP_TRACK_LATCH_OPENED ); + } + break; + + default: + break; + } } } else