Index: firmware/App/Modes/ModePostTreat.c =================================================================== diff -u -rde5a0d43bdef611d963d11855bc958a8d8899a09 -r101bf85b0b425e919b01b4b7fabcbd15fd5bbde5 --- firmware/App/Modes/ModePostTreat.c (.../ModePostTreat.c) (revision de5a0d43bdef611d963d11855bc958a8d8899a09) +++ firmware/App/Modes/ModePostTreat.c (.../ModePostTreat.c) (revision 101bf85b0b425e919b01b4b7fabcbd15fd5bbde5) @@ -27,44 +27,47 @@ static U32 start; #endif - /** - * @addtogroup HDPostTreatmentMode - * @{ - */ +/** + * @addtogroup HDPostTreatmentMode + * @{ + */ // ********** private data ********** // ********** private function prototypes ********** -/************************************************************************* - * @brief initPostTreatmentMode +/*********************************************************************//** + * @brief * The initPostTreatmentMode function initializes the Post-Treatment Mode module. * @details * Inputs : none * Outputs : Post-Treatment Mode module initialized. - * @param none * @return none *************************************************************************/ void initPostTreatmentMode( void ) { } -/************************************************************************* - * @brief transitionToPostTreatmentMode - * The transitionToPostTreatmentMode function prepares for transition to \n +/*********************************************************************//** + * @brief + * The transitionToPostTreatmentMode function prepares for transition to * post-treatment mode. * @details * Inputs : none - * Outputs : - * @param none + * Outputs : none * @return none *************************************************************************/ void transitionToPostTreatmentMode( void ) { // temporary test code. TODO - remove later #ifndef UF_TEST_ENABLED +#ifndef RUN_PUMPS_OPEN_LOOP + setBloodPumpTargetFlowRate( 100, MOTOR_DIR_REVERSE, PUMP_CONTROL_MODE_CLOSED_LOOP ); + setDialInPumpTargetFlowRate( 100, MOTOR_DIR_REVERSE, PUMP_CONTROL_MODE_CLOSED_LOOP ); +#else setBloodPumpTargetFlowRate( 100, MOTOR_DIR_REVERSE, PUMP_CONTROL_MODE_OPEN_LOOP ); setDialInPumpTargetFlowRate( 100, MOTOR_DIR_REVERSE, PUMP_CONTROL_MODE_OPEN_LOOP ); +#endif setDialOutPumpTargetRate( 100, MOTOR_DIR_REVERSE, PUMP_CONTROL_MODE_OPEN_LOOP ); #else #endif @@ -73,13 +76,12 @@ #endif } -/************************************************************************* - * @brief execPostTreatmentMode +/*********************************************************************//** + * @brief * The execFaultMode function executes the Post-Treatment Mode state machine. * @details * Inputs : none - * Outputs : - * @param none + * Outputs : none * @return current state (sub-mode) *************************************************************************/ U32 execPostTreatmentMode( void )