Index: firmware/App/Modes/ModeGenDialysate.c =================================================================== diff -u -refed432eddd3b47deb44b68088e534ac539b47f6 -r8e93a6e39b2c7af5f0b47ef1272a2b53446fab0b --- firmware/App/Modes/ModeGenDialysate.c (.../ModeGenDialysate.c) (revision efed432eddd3b47deb44b68088e534ac539b47f6) +++ firmware/App/Modes/ModeGenDialysate.c (.../ModeGenDialysate.c) (revision 8e93a6e39b2c7af5f0b47ef1272a2b53446fab0b) @@ -103,7 +103,6 @@ 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 ); @@ -586,15 +585,17 @@ * dialysate flow rate for continuous delivery of dialysate. * @details \b Inputs: Qd. * @details \b Outputs: D48 pump speed - * @return none. + * @return calculated initial D48 pump speed. *************************************************************************/ -static void calculateD48PumpSpeedForBCFill( void ) +U32 calculateD48PumpSpeedForBCFill( void ) { // Get the dialysate flow rate from TD - F32 dialFlowrate = getTDDialysateFlowrate(); + F32 dialFlowrate = getTDDialysateFlowrate(); // D48 Pump Speed = (1.24 * Qd ) + 30.0 d48PumpSpeed = (U32)( ( PUMP_SPEED_SLOPE_FACTOR * dialFlowrate ) + PUMP_SPEED_INTERCEPT_FACTOR ); + + return d48PumpSpeed; } /*********************************************************************//**