Index: firmware/App/Modes/ModeFill.c =================================================================== diff -u -rdc0d9b087c609e71cacdb7f0395cccf29d749c00 -r92ec01cb48d91fe7315baa987e1aa051dd12df75 --- firmware/App/Modes/ModeFill.c (.../ModeFill.c) (revision dc0d9b087c609e71cacdb7f0395cccf29d749c00) +++ firmware/App/Modes/ModeFill.c (.../ModeFill.c) (revision 92ec01cb48d91fe7315baa987e1aa051dd12df75) @@ -22,9 +22,9 @@ #include "OperationModes.h" #include "Pressures.h" #include "Reservoirs.h" +#include "TemperatureSensors.h" #include "Timers.h" #include "Valves.h" -#include "TemperatureSensors.h" /** * @addtogroup DGFillMode @@ -47,10 +47,10 @@ /*********************************************************************//** * @brief initFillMode - * The initFillMode function initializes the Fill Mode module. + * The initFillMode function initializes the fill mode module. * @details * Inputs : none - * Outputs : Fill Mode module initialized. + * Outputs : Fill mode module initialized. * @return none *************************************************************************/ void initFillMode( void ) @@ -64,7 +64,7 @@ * fill mode. * @details * Inputs : none - * Outputs : fillState + * Outputs : Re-initialized fill mode * @return none *************************************************************************/ void transitionToFillMode( void ) @@ -80,18 +80,19 @@ /*********************************************************************//** * @brief execFillMode - * The execFillMode function executes the Fill Mode state machine. + * The execFillMode function executes the fill mode state machine. * @details * Inputs : fillState - * Outputs : fillState + * Outputs : Check water quality, fillState * @return current state. *************************************************************************/ U32 execFillMode( void ) { - // check inlet water conductivity, temperature, and pressure - checkInletWaterConductivity( fillState ); + // check inlet water conductivity, temperature, pressure, and RO rejection ratio + checkInletWaterConductivity(); checkInletWaterTemperature(); checkInletPressure(); + checkRORejectionRatio(); // execute current Fill state switch ( fillState ) @@ -120,10 +121,10 @@ /*********************************************************************//** * @brief * The handleDialysateProductionState function executes the Dialysate Production \n - * state of the Fill Mode state machine. + * state of the fill mode state machine. * @details * Inputs : none - * Outputs : + * Outputs : none * @return the next state *************************************************************************/ static DG_FILL_MODE_STATE_T handleDialysateProductionState( void ) @@ -143,10 +144,10 @@ /*********************************************************************//** * @brief * The handleDeliverDialysateState function executes the Deliver Dialysate \n - * state of the Fill Mode state machine. + * state of the fill mode state machine. * @details * Inputs : none - * Outputs : + * Outputs : Deliver Dialysate * @return the next state *************************************************************************/ static DG_FILL_MODE_STATE_T handleDeliverDialysateState( void )