Index: firmware/App/Controllers/Switches.h =================================================================== diff -u -rce619800f4315d7e7fb07da21f10f4f6bad229fc -r5fb0cfdde0e308edfa027fc10981655c329abf4a --- firmware/App/Controllers/Switches.h (.../Switches.h) (revision ce619800f4315d7e7fb07da21f10f4f6bad229fc) +++ firmware/App/Controllers/Switches.h (.../Switches.h) (revision 5fb0cfdde0e308edfa027fc10981655c329abf4a) @@ -8,7 +8,7 @@ * @file Switches.h * * @author (last) Dara Navaei -* @date (last) 13-Aug-2021 +* @date (last) 24-May-2022 * * @author (original) Dara Navaei * @date (original) 24-Jul-2021 @@ -33,12 +33,12 @@ // ********** public definitions ********** /// DG doors and caps enumeration -typedef enum switches_names +typedef enum cap_names { CONCENTRATE_CAP = 0, ///< Concentrate cap DIALYSATE_CAP, ///< Dialysate cap - NUM_OF_CAPS ///< Number of doors and caps -} SWITCH_T; + NUM_OF_CAPS ///< Number of caps +} CAP_T; /// DG doors and caps data publish structure typedef struct @@ -53,7 +53,7 @@ void execSwitches( void ); -OPN_CLS_STATE_T getSwitchStatus( SWITCH_T switchId ); +OPN_CLS_STATE_T getSwitchStatus( CAP_T switchId ); BOOL testSetSwitchesDataPublishIntervalOverride( U32 value ); BOOL testResetSwitchesDataPublishIntervalOverride( void );