Index: firmware/App/Modes/ModeGenDialysate.c =================================================================== diff -u -r8471d9c87bc554586ecc1e7e12d6ee35b7876230 -r34e1ca4e998f57d2e962709cd272a296dc4d8c50 --- firmware/App/Modes/ModeGenDialysate.c (.../ModeGenDialysate.c) (revision 8471d9c87bc554586ecc1e7e12d6ee35b7876230) +++ firmware/App/Modes/ModeGenDialysate.c (.../ModeGenDialysate.c) (revision 34e1ca4e998f57d2e962709cd272a296dc4d8c50) @@ -103,6 +103,7 @@ static DD_GEND_MODE_STATE_T handleGenDIsolatedUFState( void ); static F32 getGenDialysateTargetTemperature( void ); static void calculateTargetDialysateTemp( void ); +static void calculateD48PumpSpeedForBCFill( void ); static void updateDialysateToDialyzerFlowRate( void ); static void checkDialysateTemperature( void ); static void monitorChamberLevelStatus( void ); @@ -166,7 +167,7 @@ { initGenDialysateMode(); setCurrentSubState( NO_SUB_STATE ); - calculateD48PumpSpeed(); + calculateD48PumpSpeedForBCFill(); transitionToUltrafiltration(); return genDialysateState; @@ -501,25 +502,25 @@ /*********************************************************************//** * @brief - * The getD48PumpSpeed function returns the calculated D48 pump speed + * The getD48PumpSpeedForBCFill function returns the calculated D48 pump speed * @details \b Inputs: none * @details \b Outputs: none * @return D48 pump speed. *************************************************************************/ -U32 getD48PumpSpeed( void ) +U32 getD48PumpSpeedForBCFill( void ) { return d48PumpSpeed; } /*********************************************************************//** * @brief - * The setD48PumpSpeed function sets the updated D48 pump speed. + * The setD48PumpSpeedForBCFill function sets the updated D48 pump speed. * @details \b Inputs: none * @details \b Outputs: d48PumpSpeed * @param pumpSpeed Dialysate pump speed * @return none. *************************************************************************/ -void setD48PumpSpeed( U32 pumpSpeed ) +void setD48PumpSpeedForBCFill( U32 pumpSpeed ) { d48PumpSpeed = pumpSpeed; } @@ -581,13 +582,13 @@ /*********************************************************************//** * @brief - * The calculateD48PumpSpeed function calculates the pump speed based on the + * The calculateD48PumpSpeedForBCFill function calculates the pump speed based on the * dialysate flow rate for continuous delivery of dialysate. * @details \b Inputs: Qd. * @details \b Outputs: D48 pump speed * @return none. *************************************************************************/ -static void calculateD48PumpSpeed( void ) +static void calculateD48PumpSpeedForBCFill( void ) { // Get the dialysate flow rate from TD F32 dialFlowrate = getTDDialysateFlowrate(); @@ -902,7 +903,7 @@ signalUFRateUpdate(); //Update D48 pump speed - calculateD48PumpSpeed(); + calculateD48PumpSpeedForBCFill(); //reset the flag isTreatmentParamUpdated = FALSE;