Index: firmware/App/Controllers/BloodFlow.c =================================================================== diff -u -r3fa496b611a3a84c8aaa882a1b27762c6bc0024c -rd8dda58bc63a879922f9cd7c5495f7ea7de3a4ac --- firmware/App/Controllers/BloodFlow.c (.../BloodFlow.c) (revision 3fa496b611a3a84c8aaa882a1b27762c6bc0024c) +++ firmware/App/Controllers/BloodFlow.c (.../BloodFlow.c) (revision d8dda58bc63a879922f9cd7c5495f7ea7de3a4ac) @@ -308,7 +308,15 @@ bloodPumpControlMode = mode; // Set PWM duty cycle target to an estimated initial target to ramp to based on target flow rate - then we will control to flow when ramp completed bloodPumpPWMDutyCyclePct = BP_PWM_FROM_ML_PER_MIN((F32)flowRate); // ~ 8% per 100 mL/min with a 10% zero offset added in (e.g. 100 mL/min = 8+10 = 18%) +#ifndef _VECTORCAST_ + /* + * This range check was disabled in VectorCAST since all of its branches cannot be covered. + * This if statement is only executed if the flow rate is less than 700 mL/min and the required duty cycle for that will be 88% and not 90% and above. + * Also the blood flow to PWM conversion macro will have a minimum of 10% duty cycle and therefore, duty cycles below 10% cannot be achieved. + * This range check will stay in the actual code in case there was a memory stomp or other catastrophic cases + */ bloodPumpPWMDutyCyclePct = RANGE( bloodPumpPWMDutyCyclePct, MIN_BLOOD_PUMP_PWM_DUTY_CYCLE, MAX_BLOOD_PUMP_PWM_DUTY_CYCLE ); +#endif switch ( bloodPumpState ) {