Index: firmware/App/Monitors/Switches.c =================================================================== diff -u -r036a75d76ab01912646a480b935d97187a231a19 -r50f4b79164155c1bc375dd3ff0e8588f934dc729 --- firmware/App/Monitors/Switches.c (.../Switches.c) (revision 036a75d76ab01912646a480b935d97187a231a19) +++ firmware/App/Monitors/Switches.c (.../Switches.c) (revision 50f4b79164155c1bc375dd3ff0e8588f934dc729) @@ -79,8 +79,9 @@ /*********************************************************************//** * @brief * The execSwitches function executes the switches monitor executive. - * @details \b Inputs: switchesStatus - * @details \b Outputs: switchesStatus + * Switch state changes are debounced for 250ms before formalizing them. + * @details \b Inputs: switchesStatus[], switchDebounceStartTimes[] + * @details \b Outputs: switchesStatus[], switchDebounceStartTimes[] * @return none *************************************************************************/ void execSwitches( void ) @@ -89,7 +90,7 @@ OPN_CLS_STATE_T currentSwitchStates[ NUM_OF_SWITCHES ]; // Get current state of each switch - currentSwitchStates[ H9_SWCH ] = ( FALSE == getFPGAFrontDoorClosedStatus() ? STATE_OPEN : STATE_CLOSED ); + currentSwitchStates[ H9_SWCH ] = ( FALSE == getH9FrontDoorClosedStatus() ? STATE_OPEN : STATE_CLOSED ); // Debounce each switch for ( i = 0; i < NUM_OF_SWITCHES; i++ ) @@ -209,7 +210,7 @@ * The publishSwitchesData function broadcasts the switches data at the * publication interval. * @details \b Message \b Sent: MSG_ID_TD_SWITCHES_DATA - * @details \b Inputs: switchesDataPublicationCounter + * @details \b Inputs: switchesDataPublicationCounter, switchesStatus[] * @details \b Outputs: switchesDataPublicationCounter * @return none *************************************************************************/