Index: firmware/App/Controllers/Switches.c =================================================================== diff -u -rd0b30928bfbb1f3b2b13ffbcf17d4e6ff4bf4f7c -r1747702a2e89998cd3fa1348907eeb623e9c16c8 --- firmware/App/Controllers/Switches.c (.../Switches.c) (revision d0b30928bfbb1f3b2b13ffbcf17d4e6ff4bf4f7c) +++ firmware/App/Controllers/Switches.c (.../Switches.c) (revision 1747702a2e89998cd3fa1348907eeb623e9c16c8) @@ -8,14 +8,13 @@ * @file Switches.c * * @author (last) Dara Navaei -* @date (last) 22-Feb-2022 +* @date (last) 25-May-2022 * * @author (original) Dara Navaei * @date (original) 24-Jul-2021 * ***************************************************************************/ - #include "FPGA.h" #include "MessageSupport.h" #include "Switches.h" @@ -86,7 +85,6 @@ void execSwitches( void ) { U08 i; - U08 currentSwitchStatus = 0; for ( i = 0; i < NUM_OF_CAPS; i++ ) @@ -138,7 +136,7 @@ * @param switchId which is the switch that its status is requested * @return switch status *************************************************************************/ -OPN_CLS_STATE_T getSwitchStatus( SWITCH_T switchId ) +OPN_CLS_STATE_T getSwitchStatus( CAP_T switchId ) { U32 status = 0;