Index: firmware/App/Controllers/Switches.c =================================================================== diff -u -rff5d79f69db29d73a440d0ca8e6854b5837205d3 -r6cc48a92eda5d3b797eb470b37bb097907dbea8e --- firmware/App/Controllers/Switches.c (.../Switches.c) (revision ff5d79f69db29d73a440d0ca8e6854b5837205d3) +++ firmware/App/Controllers/Switches.c (.../Switches.c) (revision 6cc48a92eda5d3b797eb470b37bb097907dbea8e) @@ -120,13 +120,12 @@ // If the debounce time has been elapsed, update the switch status to the new status else if ( TRUE == didTimeout( switchesStatus[ i ].debounceStartTime, SWITCHES_DEBOUNCE_TIME_MS ) ) { - - if (FRONT_DOOR == i) + if ( FRONT_DOOR == i ) { // Log front door switch change sendTreatmentLogEventData( FRONT_DOOR_SWITCH_CHANGED_EVENT, (F32)switchesStatus[ i ].status.data, (F32)currentSwitchStatus ); } - else if (PUMP_TRACK_SWITCH == i) + else if ( PUMP_TRACK_SWITCH == i ) { // Log pump track switch change sendTreatmentLogEventData( PUMP_TRACK_SWITCH_CHANGED_EVENT, (F32)switchesStatus[ i ].status.data, (F32)currentSwitchStatus );