Index: firmware/App/Controllers/SubstitutionPump.c =================================================================== diff -u -r43c231c0f9a56e2481f94cdbc51f45ef1af23c46 -r9e088e27aa474aeb3748d43ab8d09c93ed848ac2 --- firmware/App/Controllers/SubstitutionPump.c (.../SubstitutionPump.c) (revision 43c231c0f9a56e2481f94cdbc51f45ef1af23c46) +++ firmware/App/Controllers/SubstitutionPump.c (.../SubstitutionPump.c) (revision 9e088e27aa474aeb3748d43ab8d09c93ed848ac2) @@ -60,8 +60,8 @@ #define SUBSTITUTION_PUMP_RAMP_SPEED_INCREMENT 5.0F ///< Speed increase (mL/min) when controlling Substitution pump to target step speed. #define SUBSTITUTION_PUMP_CNT_TO_RPM(cnt) ( 60 / ( cnt * 0.0001 ) ) ///< Conversion function for hall sensor cnt to rpm. rpm = 60/(cnt*100uS). -#define MAX_ALLOWED_ML_OUT_OF_RANGE 20 ///< Maximum allowed mL/min out of range from target ml/min in open loop. -#define RPM_OUT_OF_RANGE_TIME_OUT ( 5 * MS_PER_SECOND ) ///< Open loop RPM out of range time out in ms. +#define MAX_ALLOWED_ML_OUT_OF_RANGE 10 ///< Maximum allowed mL/min out of range from target ml/min in open loop. +#define RPM_OUT_OF_RANGE_TIME_OUT ( 2 * MS_PER_SECOND ) ///< Open loop RPM out of range time out in ms. static const U32 SUBSTITUTION_PUMP_CONTROL_FORWARD = SUBSTITUTION_PUMP_CONTROL_SLEEP_OFF | SUBSTITUTION_PUMP_CONTROL_NOT_RESET |