Index: firmware/App/Modes/ModePreTreat.c =================================================================== diff -u -r1566855e6eec33be7b5cfb3d2ba1d1de8cee16e5 -r4fa0828e455e7701dc485b00391486bdfc8d7775 --- firmware/App/Modes/ModePreTreat.c (.../ModePreTreat.c) (revision 1566855e6eec33be7b5cfb3d2ba1d1de8cee16e5) +++ firmware/App/Modes/ModePreTreat.c (.../ModePreTreat.c) (revision 4fa0828e455e7701dc485b00391486bdfc8d7775) @@ -7,8 +7,8 @@ * * @file ModePreTreat.c * -* @author (last) Dara Navaei -* @date (last) 07-Mar-2023 +* @author (last) Michael Garthwaite +* @date (last) 08-Mar-2023 * * @author (original) Dara Navaei * @date (original) 05-Nov-2019 @@ -48,7 +48,7 @@ #define PRE_TREATMENT_FLUSH_FILL_TARGET_TEMP_C 45.0F ///< Pre treatment flush fill target temperature in C. #define PRE_TREATMENT_NORMAL_FILL_TARGET_TEMP_C ( 37.0F + 2.0F ) ///< Pre treatment normal fill target temperature in C. -#define PRE_TREATMENT_MIN_FILL_RESERVOIR_VOLUME_ML 125 ///< Fill reservoir to this volume minimum to prep volume during development. +#define PRE_TREATMENT_MIN_FILL_RESERVOIR_VOLUME_ML 500 ///< Fill reservoir to this volume minimum to prep volume during development. #define PRE_TREATMENT_FLUSH_RESERVOIR_VOLUME_ML 500 ///< Fill reservoir to this volume (in mL) to flush filter and lines. #define PRE_TREATMENT_FILL_RESERVOIR_ONE_VOLUME_ML 1300 ///< Fill reservoir one to this volume (in mL) during pre-treatment mode. #define PRE_TREATMENT_FILL_RESERVOIR_TWO_VOLUME_ML 750 ///< Fill reservoir two to this volume (in mL) during pre-treatment mode. @@ -1242,13 +1242,18 @@ PRE_TREATMENT_RESERVOIR_MGMT_STATE_T state = PRE_TREATMENT_RESERVOIR_MGMT_REQUEST_RESERVOIR_SWITCH_STATE; DG_OP_MODE_T dgOpMode = getDGOpMode(); U32 dgSubMode = getDGSubMode(); + BOOL waitBeforeSwitch = TRUE; //wait after drain or fill if ( ( DG_MODE_GENE == dgOpMode ) && ( DG_GEN_IDLE_MODE_STATE_FLUSH_WATER == dgSubMode ) ) { - BOOL waitBeforeSwitch = TRUE; - // We do not want to switch over to res 2 final fill until prime is ready for it. +#ifndef _RELEASE_ + if ( SW_CONFIG_ENABLE_VALUE == getSoftwareConfigStatus( SW_CONFIG_DISABLE_PRIMING ) ) + { + waitBeforeSwitch = FALSE; + } +#endif if ( TRUE == reservoirStatus[ DG_RESERVOIR_2 ].fillComplete ) { if ( ( getPreTreatmentSubState() > HD_PRE_TREATMENT_PRIME_STATE ) || @@ -1338,7 +1343,7 @@ { #ifndef _RELEASE_ if ( ( SW_CONFIG_ENABLE_VALUE == getSoftwareConfigStatus( SW_CONFIG_DISABLE_PRIMING ) ) || - ( SW_CONFIG_ENABLE_VALUE == getSoftwareConfigStatus( SW_CONFIG_DISABLE_WET_SELF_TEST ) ) ) + ( SW_CONFIG_ENABLE_VALUE == getSoftwareConfigStatus( SW_CONFIG_DISABLE_WET_SELF_TEST ) ) ) { if ( DG_RESERVOIR_1 == inactiveRes ) { Index: firmware/App/Modes/SelfTests.c =================================================================== diff -u -rd62cad9611841e592b4b46b1170e4beb57c1d153 -r4fa0828e455e7701dc485b00391486bdfc8d7775 --- firmware/App/Modes/SelfTests.c (.../SelfTests.c) (revision d62cad9611841e592b4b46b1170e4beb57c1d153) +++ firmware/App/Modes/SelfTests.c (.../SelfTests.c) (revision 4fa0828e455e7701dc485b00391486bdfc8d7775) @@ -7,7 +7,7 @@ * * @file SelfTests.c * -* @author (last) Sean Nash +* @author (last) Michael Garthwaite * @date (last) 08-Mar-2023 * * @author (original) Quang Nguyen @@ -363,7 +363,7 @@ } else { -// SET_ALARM_WITH_1_U32_DATA( ALARM_ID_HD_NO_CART_SELF_TEST_TIMEOUT, currentNoCartSelfTestsState ); + SET_ALARM_WITH_1_U32_DATA( ALARM_ID_HD_NO_CART_SELF_TEST_TIMEOUT, currentNoCartSelfTestsState ); } } } @@ -916,6 +916,9 @@ #ifndef _RELEASE_ if ( SW_CONFIG_ENABLE_VALUE == getSoftwareConfigStatus( SW_CONFIG_DISABLE_DRY_SELF_TESTS ) ) { + signalAllowDGFlushFills(); + signalAllowDGFillRes1(); + signalAllowDGFillRes2(); state = DRY_SELF_TESTS_SYRINGE_PUMP_PRIME_STATE; } else @@ -1482,14 +1485,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 { @@ -1511,14 +1506,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; } @@ -1528,6 +1515,19 @@ 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 + ( SW_CONFIG_ENABLE_VALUE == getSoftwareConfigStatus( SW_CONFIG_DISABLE_DRY_SELF_TESTS ) ) ) + { + if ( state != DRY_SELF_TESTS_SYRINGE_PUMP_PRIME_STATE ) + { + signalAllowDGFlushFills(); + signalAllowDGFillRes1(); + signalAllowDGFillRes2(); + } + } +#endif + return state; }