Index: firmware/App/Controllers/DialInFlow.c =================================================================== diff -u -r8d44b80febc4574ce8f9adf91d04a6056c9de42e -r6d19d844800eaaa05d03561c7f6e2d882de2c1ff --- firmware/App/Controllers/DialInFlow.c (.../DialInFlow.c) (revision 8d44b80febc4574ce8f9adf91d04a6056c9de42e) +++ firmware/App/Controllers/DialInFlow.c (.../DialInFlow.c) (revision 6d19d844800eaaa05d03561c7f6e2d882de2c1ff) @@ -47,6 +47,8 @@ /// Interval (ms/task time) at which the dialIn flow data is published on the CAN bus. #define DIAL_IN_FLOW_DATA_PUB_INTERVAL ( MS_PER_SECOND / TASK_PRIORITY_INTERVAL ) +#define MAX_SETTABLE_DIAL_IN_FLOW_RATE 700 ///< Maximum settable dialysate inlet flow rate (in mL/min). + #define MAX_DIAL_IN_PUMP_PWM_STEP_UP_CHANGE 0.0133F ///< Max duty cycle change when ramping up ~ 200 mL/min/s. #define MAX_DIAL_IN_PUMP_PWM_STEP_DN_CHANGE 0.02F ///< Max duty cycle change when ramping down ~ 300 mL/min/s. #define MAX_DIAL_IN_PUMP_PWM_DUTY_CYCLE 0.90F ///< Controller will error if PWM duty cycle > 90%, so set max to 90%. @@ -303,7 +305,7 @@ // Don't interrupt pump control unless rate or mode is changing if ( ( dirFlowRate != targetDialInFlowRate ) || ( mode != dialInPumpControlMode ) ) { - BOOL isFlowRateInRange = ( flowRate <= MAX_DIAL_IN_FLOW_RATE ? TRUE : FALSE ); + BOOL isFlowRateInRange = ( flowRate <= MAX_SETTABLE_DIAL_IN_FLOW_RATE ? TRUE : FALSE ); #ifndef _RELEASE_ if ( SW_CONFIG_ENABLE_VALUE == getSoftwareConfigStatus( SW_CONFIG_DISABLE_PUMPS_FLOW_LIMITS ) )