Index: firmware/App/Controllers/BalancingChamber.c =================================================================== diff -u -ra2ea8edd918761b403cbe2c00e1bfe2fc69be5ea -rfc3ad8a7cdeed09ed70feaeb3517c885e313dfcc --- firmware/App/Controllers/BalancingChamber.c (.../BalancingChamber.c) (revision a2ea8edd918761b403cbe2c00e1bfe2fc69be5ea) +++ firmware/App/Controllers/BalancingChamber.c (.../BalancingChamber.c) (revision fc3ad8a7cdeed09ed70feaeb3517c885e313dfcc) @@ -762,8 +762,13 @@ state = BAL_CHAMBER_STATE_IDLE; } + // If the dry bicarbonate is enabled then we ignore looking at d18 pressure to be in range. + if ( ( TRUE == getTestConfigStatus( TEST_CONFIG_DD_ENABLE_DRY_BICARB ) ) && ( TRUE == getBicarbChamberFillRequested() ) ) + { + isPressureStabilizedDuringFill = TRUE; + } // Check fresh dialysate pressure back in range to indicate fresh fill complete. - if ( ( freshDialPressure >= FRESH_DIAL_PRESSURE_MIN_PSIG ) && ( freshDialPressure <= FRESH_DIAL_PRESSURE_MAX_PSIG ) ) + else if ( ( freshDialPressure >= FRESH_DIAL_PRESSURE_MIN_PSIG ) && ( freshDialPressure <= FRESH_DIAL_PRESSURE_MAX_PSIG ) ) { if ( ++balChamberFillCompleteStablePressureCounter >= BAL_CHAMBER_FILL_COMPLETE_MS ) { @@ -1019,9 +1024,14 @@ freshDialPressure = getFilteredPressure( D18_PRES ); spentDialPressure = getFilteredPressure( D51_PRES ); - // Check fresh dialysate pressure back in range to indicate fill complete. - if ( ( freshDialPressure >= FRESH_DIAL_PRESSURE_MIN_PSIG ) && ( freshDialPressure <= FRESH_DIAL_PRESSURE_MAX_PSIG ) ) + // If the dry bicarbonate is enabled then we ignore looking at d18 pressure to be in range. + if ( ( TRUE == getTestConfigStatus( TEST_CONFIG_DD_ENABLE_DRY_BICARB ) ) && ( TRUE == getBicarbChamberFillRequested() ) ) { + isPressureStabilizedDuringFill = TRUE; + } + // Check fresh dialysate pressure back in range to indicate fresh fill complete. + else if ( ( freshDialPressure >= FRESH_DIAL_PRESSURE_MIN_PSIG ) && ( freshDialPressure <= FRESH_DIAL_PRESSURE_MAX_PSIG ) ) + { if ( ++balChamberFillCompleteStablePressureCounter >= BAL_CHAMBER_FILL_COMPLETE_MS ) { // stabilized pressure indicating fresh side fill is complete Index: firmware/App/Controllers/DryBiCart.h =================================================================== diff -u -r4c91b459486b4150d09b2f1a13b763ef3d430b2f -rfc3ad8a7cdeed09ed70feaeb3517c885e313dfcc --- firmware/App/Controllers/DryBiCart.h (.../DryBiCart.h) (revision 4c91b459486b4150d09b2f1a13b763ef3d430b2f) +++ firmware/App/Controllers/DryBiCart.h (.../DryBiCart.h) (revision fc3ad8a7cdeed09ed70feaeb3517c885e313dfcc) @@ -76,6 +76,7 @@ U32 execDryBicartDrainMode( void ); void execDryBicart( void ); BOOL setBicarbChamberFillRequested( void ); +BOOL getBicarbChamberFillRequested( void ); BOOL setBicartFillRequested( void ); BOOL setBicartDrainRequested( void ); Index: firmware/App/Monitors/Level.c =================================================================== diff -u -ra2ea8edd918761b403cbe2c00e1bfe2fc69be5ea -rfc3ad8a7cdeed09ed70feaeb3517c885e313dfcc --- firmware/App/Monitors/Level.c (.../Level.c) (revision a2ea8edd918761b403cbe2c00e1bfe2fc69be5ea) +++ firmware/App/Monitors/Level.c (.../Level.c) (revision fc3ad8a7cdeed09ed70feaeb3517c885e313dfcc) @@ -8,7 +8,7 @@ * @file Level.c * * @author (last) Sameer Kalliadan Poyil -* @date (last) 30-Apr-2026 +* @date (last) 01-May-2026 * * @author (original) Vinayakam Mani * @date (original) 14-Oct-2024