Index: firmware/App/Controllers/SyringePump.c =================================================================== diff -u -rabd31efa973204fbc187f819e1579a829c045c8f -ra5ed2e6ec59ab5f9dbf5aabeb3728b7ed2503ea8 --- firmware/App/Controllers/SyringePump.c (.../SyringePump.c) (revision abd31efa973204fbc187f819e1579a829c045c8f) +++ firmware/App/Controllers/SyringePump.c (.../SyringePump.c) (revision a5ed2e6ec59ab5f9dbf5aabeb3728b7ed2503ea8) @@ -1445,23 +1445,23 @@ { // Handle ramp up rampSyringePump(); + } - // Is plunger Heparin volume position detected? or volume requiring full syringe. - if ( ( syringeVol <= txVolumeReq ) || ( SYRINGE_PUMP_PRELOAD_MAX_VOLUME_ML < txVolumeReq ) ) - { - stopPump = TRUE; - syringePumpVolumeDelivered.data = 0.0; - syringePumpSafetyVolumeDelivered = 0.0; - syringePumpVolumeStartPosition = pos; - syringePumpPreLoadCompleted = TRUE; - } + // Is plunger Heparin volume position detected? or volume requiring full syringe. + if ( ( syringeVol <= txVolumeReq ) || ( SYRINGE_PUMP_PRELOAD_MAX_VOLUME_ML < txVolumeReq ) ) + { + stopPump = TRUE; + syringePumpVolumeDelivered.data = 0.0; + syringePumpSafetyVolumeDelivered = 0.0; + syringePumpVolumeStartPosition = pos; + syringePumpPreLoadCompleted = TRUE; + } - // Check max position > empty + 0.5 mL - stopPump = checkMaxTravel( stopPump, SYRINGE_PUMP_EMPTY_POS + SYRINGE_PUMP_EMPTY_POS_MARGIN ); + // Check max position > empty + 0.5 mL + stopPump = checkMaxTravel( stopPump, SYRINGE_PUMP_EMPTY_POS + SYRINGE_PUMP_EMPTY_POS_MARGIN ); - // Check pump direction - stopPump = checkDirection( stopPump, MOTOR_DIR_FORWARD ); - } + // Check pump direction + stopPump = checkDirection( stopPump, MOTOR_DIR_FORWARD ); // If anything found that would require stopping the pump, stop pump and go to off state if ( TRUE == stopPump )