Index: firmware/App/Controllers/SpentChamberFill.c =================================================================== diff -u -r0a1d4f769464407084d39843244af74911bbdfa5 -ra7014f4b673da08de179efcdf68ac8c854fe5757 --- firmware/App/Controllers/SpentChamberFill.c (.../SpentChamberFill.c) (revision 0a1d4f769464407084d39843244af74911bbdfa5) +++ firmware/App/Controllers/SpentChamberFill.c (.../SpentChamberFill.c) (revision a7014f4b673da08de179efcdf68ac8c854fe5757) @@ -39,7 +39,7 @@ // ********** private definitions ********** #define SPENT_CHAMBER_FILL_DATA_PUBLISH_INTERVAL ( 250 / TASK_GENERAL_INTERVAL ) ///< Interval (ms/task time) at which the balancing chamber data published. -#define SPENT_CHAMBER_SWITCHING_PERIOD 59 ///< Spent Chamber Fill Switching Period +#define SPENT_CHAMBER_SWITCHING_PERIOD 59 ///< Spent Chamber Fill Switching Period to max dialysate flow rate (Qd: 600) to stabilize the valve closure // ********** private data ********** @@ -97,7 +97,7 @@ { initSpentChamberFill(); updateBalChamberSwitchingPeriod(); - // Follow the same cycle for spent chamber fill + // Update the Switching Period to max dialysate flow rate(Qd: 600) for filling spent chamber at max rate. spentChamberFillSwitchingPeriod = SPENT_CHAMBER_SWITCHING_PERIOD; } @@ -287,6 +287,7 @@ static SPENT_CHAMBER_FILL_EXEC_STATE_T handleSpentChamberState1DosingControl( void ) { SPENT_CHAMBER_FILL_EXEC_STATE_T state = SPENT_CHAMBER_FILL_STATE1_DOSING_CNTRL; + // On dosing completion, transition to next state if ( ( TRUE == isConcentratePumpDosingCompleted( D11_PUMP ) ) && ( TRUE == isConcentratePumpDosingCompleted( D10_PUMP ) ) )