Index: firmware/App/Modes/ModeGenDialysate.c =================================================================== diff -u -rd5132b313275cf991a06917fa9d28b5c043cd6c2 -rb7c682127c3ecd2e4697f4e7d7310488701334a7 --- firmware/App/Modes/ModeGenDialysate.c (.../ModeGenDialysate.c) (revision d5132b313275cf991a06917fa9d28b5c043cd6c2) +++ firmware/App/Modes/ModeGenDialysate.c (.../ModeGenDialysate.c) (revision b7c682127c3ecd2e4697f4e7d7310488701334a7) @@ -98,7 +98,7 @@ static DD_GEND_MODE_STATE_T handleGenDIsolatedUFState( void ); static F32 getGenDialysateTargetTemperature( void ); static void calculateTargetDialysateTemp( void ); -static void updateDialysateFlowRate( void ); +static void updateDialysateToDialyzerFlowRate( void ); static void checkDialysateTemperature( void ); static void monitorChamberLevelStatus( void ); static void publishGenDialysateModeData( void ); @@ -366,8 +366,8 @@ checkDialysateTemperature(); #endif - // Update dialysate flow rate depending on the state - updateDialysateFlowRate(); + // Update dialysate flow rate only when in the Dialysate Delivery state + updateDialysateToDialyzerFlowRate(); //Check temperature drift between D30 and D28 checkDialysateTemperatureSensors(); @@ -821,14 +821,14 @@ /*********************************************************************//** * @brief - * The updateDialysateFlowRate function updates the current dialysate to dialyzer - * flow rate only when in the dialysate delivery state, otherwise the flow rate - * is set to zero + * The updateDialysateToDialyzerFlowRate function updates the current dialysate + * to dialyzer flow rate only when in the dialysate delivery state, otherwise + * the flow rate is set to zero * @details \b Inputs: genDialysateState * @details \b Outputs: dialysateToDialyzerFlowRate * @return none *************************************************************************/ -void updateDialysateFlowRate( void ) +void updateDialysateToDialyzerFlowRate( void ) { // Check the current Gen Dialysate Mode state if ( DD_GEND_DIALYSATE_DELIVERY_STATE == genDialysateState )