Index: firmware/App/Services/Reservoirs.c =================================================================== diff -u -r49fc89b6cd5f629a201dc9a901b8aac68087da6f -r0cf731b5127eef04d9a0a2f32d5041171fe8b66e --- firmware/App/Services/Reservoirs.c (.../Reservoirs.c) (revision 49fc89b6cd5f629a201dc9a901b8aac68087da6f) +++ firmware/App/Services/Reservoirs.c (.../Reservoirs.c) (revision 0cf731b5127eef04d9a0a2f32d5041171fe8b66e) @@ -364,7 +364,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 ) @@ -493,7 +493,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 *************************************************************************/ @@ -520,7 +520,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 *************************************************************************/ @@ -540,8 +540,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 ) @@ -597,7 +597,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 ) @@ -635,8 +635,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 ) @@ -684,8 +684,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 )