Index: firmware/App/Services/TDInterface.c =================================================================== diff -u -r6e36d2fd90b130f540494f4128951d81e7dc5ed5 -r333e2d0c0462dcb4343a279420949cce716ebab7 --- firmware/App/Services/TDInterface.c (.../TDInterface.c) (revision 6e36d2fd90b130f540494f4128951d81e7dc5ed5) +++ firmware/App/Services/TDInterface.c (.../TDInterface.c) (revision 333e2d0c0462dcb4343a279420949cce716ebab7) @@ -44,7 +44,7 @@ static TD_OP_MODE_T tdCurrentOpMode; ///< Current TD operation mode. static U32 tdSubMode; ///< Current state (sub-mode) of current TD operation mode. static F32 tdDialysateFlowrate; ///< TD dialysate flow rate -static F32 tdUFRate; ///< TD ultrafilteration rate +static F32 tdUFRate; ///< TD ultrafiltration rate static F32 tdTargetDialysateTemp; ///< TD target dialysate temperature static BOOL tdDialyzerBypass; ///< TD dialyzer bypass static DD_ACID_TYPES_T tdAcidType; ///< TD Acid type. @@ -192,7 +192,7 @@ * The setTDUFRate function sets the latest TD UF rate. * @details \b Inputs: none * @details \b Outputs: tdUFRate - * @param ultrafilteration flow rate. + * @param ultrafiltration flow rate. * @return none. *************************************************************************/ void setTDUFRate( F32 ufRate ) @@ -223,7 +223,7 @@ * @param Dialyzer Bypass enable. * @return none. *************************************************************************/ -void setTDDialyzerBypass( F32 dialBypass ) +void setTDDialyzerBypass( BOOL dialBypass ) { tdDialyzerBypass = dialBypass; } @@ -259,7 +259,7 @@ /*********************************************************************//** * @brief - * The getTDUFrate function gets the latest TD ultrafilteration flow + * The getTDUFrate function gets the latest TD ultrafiltration flow * rate. * @details \b Inputs: tdUFRate * @details \b Outputs: none @@ -345,8 +345,12 @@ // Process the pre-gen dialysate delivery request message if ( ( DD_MODE_STAN == ddMode ) && ( TRUE == startPreGenRequest.start ) ) { - // start dialysate generation + // start pre-gen dialysate result = requestDDPreGenStart(); + // Update Temperature, Acid/Bicarb type and dialysate rate for pregen process. + setTDDialysateFlowrate( startPreGenRequest.dialRate ); + setTDTargetDialysateTemperature( startPreGenRequest.dialTemp ); + setTDAcidAndBicarbType( startPreGenRequest.acidType, startPreGenRequest.bicarbType ); } else if ( DD_MODE_PREG == ddMode ) {