Index: firmware/App/Controllers/Switches.c =================================================================== diff -u -ra9315539f527b92523b1598ff91e47db4d71dae2 -r51e60f3e3a7c95c910c24dd5f3b58e0c6b2691b8 --- firmware/App/Controllers/Switches.c (.../Switches.c) (revision a9315539f527b92523b1598ff91e47db4d71dae2) +++ firmware/App/Controllers/Switches.c (.../Switches.c) (revision 51e60f3e3a7c95c910c24dd5f3b58e0c6b2691b8) @@ -95,15 +95,15 @@ switch ( i ) { case CONCENTRATE_CAP: - currentSwitchStatus = ( getFPGAConcentrateCapStatus() != 0 ? STATE_OPEN : STATE_CLOSED ); + currentSwitchStatus = getFPGAConcentrateCapStatus(); break; case DIALYSATE_CAP: - currentSwitchStatus = ( getFPGADialysateCapStatus() != 0 ? STATE_OPEN : STATE_CLOSED ); + currentSwitchStatus = getFPGADialysateCapStatus(); break; case FLUID_DOOR: - currentSwitchStatus = ( getFPGAGFluidDoorStatus() != 0 ? STATE_OPEN : STATE_CLOSED ); + currentSwitchStatus = getFPGAGFluidDoorStatus(); break; // NOTE: the default case was removed since this switch case is executed using a for loop so the default