Index: firmware/App/Modes/SelfTests.c =================================================================== diff -u -re5d6674fbf4b6ddd8057385babac0a085ce18f42 -rabcb420edab87a4cb6bee09d9198f92a7d9d0fe5 --- firmware/App/Modes/SelfTests.c (.../SelfTests.c) (revision e5d6674fbf4b6ddd8057385babac0a085ce18f42) +++ firmware/App/Modes/SelfTests.c (.../SelfTests.c) (revision abcb420edab87a4cb6bee09d9198f92a7d9d0fe5) @@ -1455,14 +1455,6 @@ { state = DRY_SELF_TESTS_SYRINGE_PUMP_OCCLUSION_DETECTION_STATE; syringeOcclusionDelayStartTime = getMSTimerCount(); // Get the current time to check for occlusion after 3 seconds has elapsed -#ifndef _RELEASE_ - if ( SW_CONFIG_ENABLE_VALUE == getSoftwareConfigStatus( SW_CONFIG_DISABLE_AIR_PUMP ) ) // if no air pump, now we can allow fills to start - { - signalAllowDGFlushFills(); - signalAllowDGFillRes1(); - signalAllowDGFillRes2(); - } -#endif } else { @@ -1484,14 +1476,6 @@ } else { -#ifndef _RELEASE_ - if ( SW_CONFIG_ENABLE_VALUE == getSoftwareConfigStatus( SW_CONFIG_DISABLE_AIR_PUMP ) ) // if no air pump, now we can allow fills to start - { - signalAllowDGFlushFills(); - signalAllowDGFillRes1(); - signalAllowDGFillRes2(); - } -#endif state = DRY_SELF_TESTS_COMPLETE_STATE; } @@ -1500,7 +1484,17 @@ state = DRY_SELF_TESTS_STOPPED_STATE; setupForSelfTestsStop(); } - +#ifndef _RELEASE_ + if ( SW_CONFIG_ENABLE_VALUE == getSoftwareConfigStatus( SW_CONFIG_DISABLE_AIR_PUMP ) ) // Allow res 1&2 fills now if air pump not disabled + { + if ( state != DRY_SELF_TESTS_SYRINGE_PUMP_PRIME_STATE ) + { + signalAllowDGFlushFills(); + signalAllowDGFillRes1(); + signalAllowDGFillRes2(); + } + } +#endif return state; }