Index: firmware/App/Controllers/ROPump.c =================================================================== diff -u -r617a2fa278e4a4426bfbe22b39ae9defbcedd778 -raf6229de70ba23f234dbfa8012d5f37cd2812563 --- firmware/App/Controllers/ROPump.c (.../ROPump.c) (revision 617a2fa278e4a4426bfbe22b39ae9defbcedd778) +++ firmware/App/Controllers/ROPump.c (.../ROPump.c) (revision af6229de70ba23f234dbfa8012d5f37cd2812563) @@ -37,7 +37,7 @@ // ********** private definitions ********** #define RO_PUMP_DATA_PUB_INTERVAL ( MS_PER_SECOND / TASK_GENERAL_INTERVAL ) ///< Interval (ms/task time) at which the RO Pump data is published on the CAN bus. -#define ROP_CONTROL_INTERVAL ( (3*MS_PER_SECOND) / TASK_GENERAL_INTERVAL ) ///< Interval (ms/task time) at which the RO pump is controlled. +#define ROP_CONTROL_INTERVAL ( MS_PER_SECOND / TASK_GENERAL_INTERVAL ) ///< Interval (ms/task time) at which the RO pump is controlled. #define ROP_FLOW_CONTROL_P_COEFFICIENT 0.1F ///< P term for RO pump flow control. #define ROP_FLOW_CONTROL_I_COEFFICIENT 0.8F ///< I term for RO pump flow control. @@ -367,7 +367,7 @@ BOOL result = FALSE; // First of all, the flow rate must be in range - if ( ( roFlowRate <= MAX_RO_FLOWRATE_MLPM ) && ( roFlowRate >= MIN_RO_FLOWRATE_MLPM ) ) + if ( roFlowRate <= MAX_RO_FLOWRATE_MLPM ) { targetROPumpFlowRate.data = roFlowRate; roPumpControlMode = PUMP_CONTROL_MODE_CLOSED_LOOP;