Index: firmware/App/Modes/ModeDrain.c =================================================================== diff -u -rdc0d9b087c609e71cacdb7f0395cccf29d749c00 -r92ec01cb48d91fe7315baa987e1aa051dd12df75 --- firmware/App/Modes/ModeDrain.c (.../ModeDrain.c) (revision dc0d9b087c609e71cacdb7f0395cccf29d749c00) +++ firmware/App/Modes/ModeDrain.c (.../ModeDrain.c) (revision 92ec01cb48d91fe7315baa987e1aa051dd12df75) @@ -22,8 +22,8 @@ #include "OperationModes.h" #include "Pressures.h" #include "Reservoirs.h" -#include "Valves.h" #include "TemperatureSensors.h" +#include "Valves.h" /** * @addtogroup DGDrainMode @@ -44,10 +44,10 @@ /*********************************************************************//** * @brief - * The initOpParamsMode function initializes the Drain Mode module. + * The initDrainMode function initializes the drain mode module. * @details * Inputs : none - * Outputs : Operating Parameters Mode module initialized. + * Outputs : drainState * @return none *************************************************************************/ void initDrainMode( void ) @@ -61,7 +61,7 @@ * mode. * @details * Inputs : none - * Outputs : + * Outputs : Drain mode initialized * @return none *************************************************************************/ void transitionToDrainMode( void ) @@ -76,18 +76,19 @@ /*********************************************************************//** * @brief - * The execDrainMode function executes the Drain Mode state machine. + * The execDrainMode function executes the drain mode state machine. * @details - * Inputs : none - * Outputs : + * Inputs : drainState + * Outputs : Check water quality, drainState * @return current state. *************************************************************************/ U32 execDrainMode( void ) { - // check inlet water conductivity, temperature, and pressure - checkInletWaterConductivity( drainState ); + // check inlet water conductivity, temperature, pressure, and RO rejection ratio + checkInletWaterConductivity(); checkInletWaterTemperature(); checkInletPressure(); + checkRORejectionRatio(); // execute current drain state switch ( drainState ) @@ -111,11 +112,11 @@ /*********************************************************************//** * @brief - * The handleDrainState function handles the drain state of the Drain Mode \n + * The handleDrainState function handles the drain state of the drain mode \n * state machine. * @details * Inputs : none - * Outputs : + * Outputs : Drain out from reservoir * @return the next state *************************************************************************/ static DG_DRAIN_STATE_T handleDrainState( void )