Index: firmware/App/Controllers/Switches.c =================================================================== diff -u -r0c66a3534801f2ba380e95b732e05b7cfee21772 -r8f5cbb3766f745c63896e76bc6a206e6f5d4dc28 --- firmware/App/Controllers/Switches.c (.../Switches.c) (revision 0c66a3534801f2ba380e95b732e05b7cfee21772) +++ firmware/App/Controllers/Switches.c (.../Switches.c) (revision 8f5cbb3766f745c63896e76bc6a206e6f5d4dc28) @@ -92,12 +92,13 @@ // Get the current switch status switch ( i ) { + // Process the status of the switches case CONCENTRATE_CAP: - currentSwitchStatus = getFPGAConcentrateCapStatus(); + currentSwitchStatus = ( getFPGAConcentrateCapStatus() != 0 ? STATE_OPEN : STATE_CLOSED ); break; case DIALYSATE_CAP: - currentSwitchStatus = getFPGADialysateCapStatus(); + currentSwitchStatus = ( getFPGADialysateCapStatus() != 0 ? STATE_OPEN : STATE_CLOSED ); break; #ifndef _VECTORCAST_