Index: firmware/App/Controllers/Switches.c =================================================================== diff -u -r02654dc5b372b3af948ebd28aabb95cc4b51c785 -r239f565516c73aae797288effcfdf1fca0a361a0 --- firmware/App/Controllers/Switches.c (.../Switches.c) (revision 02654dc5b372b3af948ebd28aabb95cc4b51c785) +++ firmware/App/Controllers/Switches.c (.../Switches.c) (revision 239f565516c73aae797288effcfdf1fca0a361a0) @@ -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