Index: firmware/App/Modes/StatePreTxRecirculate.c =================================================================== diff -u -r03e019a69e1d0e45a95b77711270a3b1781e693d -r2df4b8aede603cf05cd54a319d85b4fb60611487 --- firmware/App/Modes/StatePreTxRecirculate.c (.../StatePreTxRecirculate.c) (revision 03e019a69e1d0e45a95b77711270a3b1781e693d) +++ firmware/App/Modes/StatePreTxRecirculate.c (.../StatePreTxRecirculate.c) (revision 2df4b8aede603cf05cd54a319d85b4fb60611487) @@ -27,6 +27,7 @@ #include "Switches.h" #include "SyringePump.h" #include "Timers.h" +#include "TxParams.h" #include "Valve3Way.h" #include "Valves.h" @@ -38,8 +39,7 @@ // ********** private definitions ********** #define PRE_TX_RECIRC_BLOOD_FLOW_RATE_ML_MIN 100 ///< Blood pump flow rate during recirculation in mL/min. -#define PRE_TX_RECIRC_DIALYSATE_FLOW_RATE_ML_MIN 400 ///< Dialysate flow rate during recirculation in mL/min. -#define RECIRC_MEDIUM_TIME_MS ( 90 * SEC_PER_MIN * MS_PER_SECOND ) ///< Pre-Treatment recirc time before medium priority warning in milliseconds.. +#define RECIRC_MEDIUM_TIME_MS ( 90 * SEC_PER_MIN * MS_PER_SECOND ) ///< Pre-Treatment recirc time before medium priority warning in milliseconds. /// Enumeration of Pre-Treatment Recirculation sub-states. typedef enum PreTxRecirculate_States @@ -88,7 +88,7 @@ * The transitionToPreTxRecirculate function transitions the software * into pre-treatment recirculation. * @details \b Inputs: currentPreTxRecircState . - * @details \b Outputs: currentPreTxRecircState. + * @details \b Outputs: none. * @return none *************************************************************************/ void transitionToPreTxRecirculate( void ) @@ -104,11 +104,8 @@ * Recirculate state machine. * @details \b Alarm: ALARM_ID_TD_SOFTWARE_FAULT if the current * recirculation sub-state is invalid. - * @details \b Inputs: currentPreTxRecircState, - * preTxRecircStartTime, recircMediumAlarmGiven, - * recircResumeRequested. - * @details \b Outputs: currentPreTxRecircState, - * recircMediumAlarmGiven, recircResumeRequested. + * @details \b Inputs: currentPreTxRecircState. + * @details \b Outputs: currentPreTxRecircState. * @return none. *************************************************************************/ void execPreTxRecirculate( void ) @@ -256,7 +253,7 @@ // Direct DD to bypass dialyzer and perform no ultrafiltration cmdBypassDialyzer( TRUE ); - cmdChangeQd( PRE_TX_RECIRC_DIALYSATE_FLOW_RATE_ML_MIN ); + cmdChangeQd( getTreatmentParameterU32( TREATMENT_PARAM_DIALYSATE_FLOW ) ); cmdChangeQuf( 0.0F ); }