Index: firmware/App/Modes/ModeGenDialysate.c =================================================================== diff -u -r3cc784af591b14e5d292f92c796db70bcbd5a40b -rf6022e86136c821709ce24b61e11e8e2bdf0b11e --- firmware/App/Modes/ModeGenDialysate.c (.../ModeGenDialysate.c) (revision 3cc784af591b14e5d292f92c796db70bcbd5a40b) +++ firmware/App/Modes/ModeGenDialysate.c (.../ModeGenDialysate.c) (revision f6022e86136c821709ce24b61e11e8e2bdf0b11e) @@ -40,8 +40,6 @@ // ********** private definitions ********** -#define FRESH_DIAL_PUMP_INITIAL_RPM 2500 ///< Nominal RPM target for fresh dialysate pump to maintain required pressure. -#define SPENT_DIAL_PUMP_INITIAL_RPM 2000 ///< Nominal RPM target for spent dialysate pump to maintain required pressure. #define HYD_CHAMBER_FLUID_TEMP_C_MIN 35.0F ///< Minimum hydraulics fluid temperature in deg celcius #define GEN_DIALYSATE_DATA_PUBLISH_INTERVAL ( MS_PER_SECOND / TASK_GENERAL_INTERVAL ) ///< Interval (ms/task time) at which the gen dialysate mode data published. @@ -66,7 +64,6 @@ // ********** private function prototypes ********** static void setModeGenDStateTransition( DD_GEND_MODE_STATE_T state ); -static BOOL hydChamberWaterInletControl( void ); static DD_GEND_MODE_STATE_T handleGenDDialysateBypassState( void ); static DD_GEND_MODE_STATE_T handleGenDDialysateDeliveryState( void ); static DD_GEND_MODE_STATE_T handleGenDDialysateDeliveryPauseState( void ); @@ -314,12 +311,15 @@ * @details \b Outputs: none * @return the current state of gen dialysate mode *************************************************************************/ -static BOOL hydChamberWaterInletControl( void ) +BOOL hydChamberWaterInletControl( void ) { // Read floater switch BOOL result = FALSE; LEVEL_STATE_T floaterLevel = getLevelStatus( D6_LEVL ); + //Make sure Water Inlet Valve is open + setValveState( M4_VALV, VALVE_STATE_OPEN ); + // Get the target temperature from TD targetHydChamberFluidTemp.data = getTDTargetDialysateTemperature();