Index: firmware/App/Services/Reservoirs.c =================================================================== diff -u -r31900229872819144c2d0a05f90e5794649bf80f -rbd824a6c2a77c90809f8e09b1f7a1745778a6010 --- firmware/App/Services/Reservoirs.c (.../Reservoirs.c) (revision 31900229872819144c2d0a05f90e5794649bf80f) +++ firmware/App/Services/Reservoirs.c (.../Reservoirs.c) (revision bd824a6c2a77c90809f8e09b1f7a1745778a6010) @@ -396,7 +396,7 @@ * flow has changed the function sends the new active reservoir cycle time * to the DG. * @details Inputs: previousDialysateFlowMLP, previousUFFlowMLP - * @details Outputs: previousDialysateFlowMLP, previousUFFlowMLP + * @details Outputs: previousDialysateFlowMLP, previousUFFlowMLP, volSpentUFML, timeDepleteMS * @return none *************************************************************************/ static void calculateActiveReservoirCycleTime( void ) @@ -525,7 +525,7 @@ * @brief * The handleReservoirMgmtStartState function executes the reservoir management * start state. - * @details Inputs: none + * @details Inputs: dgOpMode * @details Outputs: none * @return next reservoir management state of the state machine *************************************************************************/ @@ -552,7 +552,7 @@ * @brief * The handleReservoirMgmtDrainState function executes the reservoir management * drain state. - * @details Inputs: none + * @details Inputs: dgOpMode * @details Outputs: none * @return next reservoir management state of the state machine *************************************************************************/ @@ -572,8 +572,8 @@ * @brief * The handleReservoirMgmtWaitToFillState function executes the reservoir management * wait to fill state. - * @details Inputs: dilutionLevel, volSpentML, dgSubMode - * @details Outputs: dilutionLevel, volSpentML, volSpentUFML, timeDepletionMS + * @details Inputs: volSpentML, dgOpMode, dgSubMode + * @details Outputs: dilutionLevelPct, volSpentUFML, timeDepleteMS, timeWaitToFillMS * @return next reservoir management state of the state machine *************************************************************************/ static TREATMENT_RESERVOIR_MGMT_STATE_T handleReservoirMgmtWaitToFillState( void ) @@ -629,7 +629,7 @@ * The handleReservoirMgmtFillState function executes the reservoir management * fill state. * @details Inputs: recirculationLevelPct, dgOpMode, dgSubMode - * @details Outputs: recirculationLevelPct, reservoirSwitchTimer + * @details Outputs: recirculationLevelPct, reservoirSwitchStartTimeMS * @return next reservoir management state of the state machine *************************************************************************/ static TREATMENT_RESERVOIR_MGMT_STATE_T handleReservoirMgmtFillState( void ) @@ -667,8 +667,8 @@ * @brief * The handleReservoirMgmtWaitForFillSettleState function executes the reservoir * management wait for fill to settle state. - * @details Inputs: reservoirSwitchTimer, volSpentML - * @details Outputs: reservoirSwitchTimer, volSpentML + * @details Inputs: reservoirSwitchStartTimeMS, volSpentML + * @details Outputs: reservoirSwitchStartTimeMS, volSpentML, volSpentUFML, dilutionLevelPct * @return next reservoir management state of the state machine *************************************************************************/ static TREATMENT_RESERVOIR_MGMT_STATE_T handleReservoirMgmtWaitForFillSettleState( void ) @@ -716,8 +716,8 @@ * @brief * The handleReservoirMgmtWaitForSwitchSettleState function executes the reservoir * management wait for switch to settle state. - * @details Inputs: reservoirSwitchTimer - * @details Outputs: none + * @details Inputs: reservoirSwitchStartTimeMS + * @details Outputs: timeReservoirInUse * @return next reservoir management state of the state machine *************************************************************************/ static TREATMENT_RESERVOIR_MGMT_STATE_T handleReservoirMgmtWaitForSwitchSettleState( void )