Index: firmware/App/Modes/Dialysis.c =================================================================== diff -u -rd9c9c94bf66bc7030f0528ec18608eb6863804eb -r9d4a653a85e0293b6527244016e7d95c3516a4d1 --- firmware/App/Modes/Dialysis.c (.../Dialysis.c) (revision d9c9c94bf66bc7030f0528ec18608eb6863804eb) +++ firmware/App/Modes/Dialysis.c (.../Dialysis.c) (revision 9d4a653a85e0293b6527244016e7d95c3516a4d1) @@ -248,22 +248,13 @@ // Do not run syringe pump if no Heparin included in prescription or it was paused or if Heparin should be stopped at this stage of treatment if ( ( minRem > (F32)preStop ) && ( HEPARIN_STATE_STOPPED == currentHeparinState ) ) { - // If not done with bolus, start/resume bolus - if ( ( bolusVol > 0.0 ) && ( getSyringePumpVolumeDelivered() < bolusVol ) ) + if ( hepRate > 0.0 ) { - startHeparinBolus(); // TODO - check return status or have function trigger alarm if not successful + startHeparinContinuous(); // TODO - check return status } - // Otherwise, start/resume continuous delivery else { - if ( hepRate > 0.0 ) - { - startHeparinContinuous(); // TODO - check return status - } - else - { - setHeparinCompleted(); - } + setHeparinCompleted(); } } else