Index: firmware/App/Modes/ModeStandby.c =================================================================== diff -u -r62aa7e7cbfb6b0dd33987a086df53481ffe4420c -r0dc2d5103f7fd8b8a66f0c385afaa0438898da14 --- firmware/App/Modes/ModeStandby.c (.../ModeStandby.c) (revision 62aa7e7cbfb6b0dd33987a086df53481ffe4420c) +++ firmware/App/Modes/ModeStandby.c (.../ModeStandby.c) (revision 0dc2d5103f7fd8b8a66f0c385afaa0438898da14) @@ -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