Index: firmware/App/Controllers/SyringePump.c =================================================================== diff -u -r1da58fd367887517d8bd1bfbee1b3033f08fe634 -ree458e1f570438f4ed48612cd5492a97be968274 --- firmware/App/Controllers/SyringePump.c (.../SyringePump.c) (revision 1da58fd367887517d8bd1bfbee1b3033f08fe634) +++ firmware/App/Controllers/SyringePump.c (.../SyringePump.c) (revision ee458e1f570438f4ed48612cd5492a97be968274) @@ -487,24 +487,12 @@ *************************************************************************/ BOOL retractSyringePump( void ) { -#ifndef _RELEASE_ - if ( getSoftwareConfigStatus( SW_CONFIG_ENABLE_SYRINGE_PUMP_CMDS ) == SW_CONFIG_ENABLE_VALUE ) + if ( ( isSyringePumpHome() != TRUE ) && ( SYRINGE_PUMP_OFF_STATE == syringePumpState ) ) { - heparinDeliveryState = HEPARIN_STATE_STOPPED; + heparinDeliveryState = HEPARIN_STATE_STOPPED; + syringePumpSetRate = SYRINGE_PUMP_RETRACT_RATE; + syringePumpRetractRequested = TRUE; } -#endif - if ( MODE_SERV == getCurrentOperationMode() ) // Allow syringe pump operations in Service Mode. - { - heparinDeliveryState = HEPARIN_STATE_STOPPED; - } - if ( ( isSyringePumpHome() != TRUE ) && ( SYRINGE_PUMP_OFF_STATE == syringePumpState ) && ( heparinDeliveryState != HEPARIN_STATE_OFF ) ) - { - { - heparinDeliveryState = HEPARIN_STATE_STOPPED; - syringePumpSetRate = SYRINGE_PUMP_RETRACT_RATE; - syringePumpRetractRequested = TRUE; - } - } return syringePumpRetractRequested; } Index: firmware/App/Modes/SelfTests.c =================================================================== diff -u -r45627442c3b93ec57ed18cd0943eed2662fb2dbc -ree458e1f570438f4ed48612cd5492a97be968274 --- firmware/App/Modes/SelfTests.c (.../SelfTests.c) (revision 45627442c3b93ec57ed18cd0943eed2662fb2dbc) +++ firmware/App/Modes/SelfTests.c (.../SelfTests.c) (revision ee458e1f570438f4ed48612cd5492a97be968274) @@ -218,14 +218,14 @@ F32 const hepRate = getTreatmentParameterF32( TREATMENT_PARAM_HEPARIN_DISPENSE_RATE ); #ifndef _RELEASE_ - if ( getSoftwareConfigStatus( SW_CONFIG_DISABLE_SYRINGE_PUMP ) != SW_CONFIG_ENABLE_VALUE ) + if ( SW_CONFIG_ENABLE_VALUE == getSoftwareConfigStatus( SW_CONFIG_DISABLE_SYRINGE_PUMP ) ) { - useHeparin = ( ( bolusVol > 0.0 ) || ( hepRate > 0.0 ) ? TRUE : FALSE ); + useHeparin = FALSE; } else #endif { - useHeparin = FALSE; + useHeparin = ( ( bolusVol > 0.0 ) || ( hepRate > 0.0 ) ? TRUE : FALSE ); } currentNoCartSelfTestsState = NO_CART_SELF_TESTS_START_STATE;