Index: firmware/App/Modes/ModeStandby.c =================================================================== diff -u -rf3404e7ea0bd86fcea261ce5f95e352ee493a49a -r2c9f7442169ce34dd4a2fffe91e293efab255826 --- firmware/App/Modes/ModeStandby.c (.../ModeStandby.c) (revision f3404e7ea0bd86fcea261ce5f95e352ee493a49a) +++ firmware/App/Modes/ModeStandby.c (.../ModeStandby.c) (revision 2c9f7442169ce34dd4a2fffe91e293efab255826) @@ -158,8 +158,8 @@ * The handleStandbyModeStartState function handles the standby start state. * This state waits for the door to be closed and then initiates homing of * pumps and valves and transitions to the wait for treatment state. - * @details \b Inputs: - * @details \b Outputs: + * @details \b Inputs: homingInitiated + * @details \b Outputs: homingInitiated * @return next state of the standby mode state machine *************************************************************************/ static TD_STANDBY_STATE_T handleStandbyModeStartState( void ) @@ -189,53 +189,6 @@ return state; } - -//static TD_STANDBY_STATE_T handleStandbyModeStartState( void ) -//{ -// TD_STANDBY_STATE_T state = STANDBY_WAIT_FOR_TREATMENT_STATE; -// -// // If we haven't already initiated homing of actuators, initiate now -// if ( homingInitiated != TRUE ) -// { -// VALVE_T valve; -// -// // Home pumps and valves -// for ( valve = FIRST_VALVE; valve < NUM_OF_VALVES; ++valve ) -// { -// homeValve( valve, FALSE, TRUE ); -// } -//// homeBloodPump(); -//// homeDialInPump(); -//// homeDialOutPump(); -//// retractSyringePump(); -// -// homingInitiated = TRUE; -// } -//// else -//// { -//// // If homing has been initiated, wait for syringe pump to home and the verify force sensor calibration -////#ifndef _RELEASE_ -//// if ( SW_CONFIG_ENABLE_VALUE == getSoftwareConfigStatus( SW_CONFIG_DISABLE_SYRINGE_PUMP ) ) -//// { -//// state = STANDBY_WAIT_FOR_TREATMENT_STATE; // Go to wait for treatment state after above check -//// } -//// else -////#endif -//// { -//// if ( ( TRUE == isSyringePumpHome() ) && ( TRUE == isSyringePumpStopped() ) ) -//// { -//// syringePumpVerifyForceSensorDACCalibration(); -//// homingInitiated = FALSE; // reset for next time -//// doorClosedRequired( FALSE ); // door no longer required to be closed in standby mode -//// state = STANDBY_WAIT_FOR_TREATMENT_STATE; // Go to wait for treatment state after above check -//// } -//// } -//// } -//// } -// -// return state; -//} - /*********************************************************************//** * @brief * The handleStandbyModeWaitForTreatmentState function handles wait for