Index: firmware/App/Controllers/BalancingChamber.c =================================================================== diff -u -rdc451e960ab328d05a06137ffdc4d8b2b1601d55 -re7e698ed85055dd286e8c0501a582ff66d601590 --- firmware/App/Controllers/BalancingChamber.c (.../BalancingChamber.c) (revision dc451e960ab328d05a06137ffdc4d8b2b1601d55) +++ firmware/App/Controllers/BalancingChamber.c (.../BalancingChamber.c) (revision e7e698ed85055dd286e8c0501a582ff66d601590) @@ -7,8 +7,8 @@ * * @file BalancingChamber.c * -* @author (last) Jashwant Gantyada -* @date (last) 21-May-2026 +* @author (last) Vinayakam Mani +* @date (last) 01-Jun-2026 * * @author (original) Vinayakam Mani * @date (original) 28-Jan-2025 @@ -781,7 +781,8 @@ // Check both spent and fresh side fill is complete isBothFillsComplete = ( ( TRUE == isSpentFillComplete ) && ( TRUE == isPressureStabilizedDuringFill ) ) ? TRUE : FALSE; - isFirstCycleNotDone = ( FALSE == isFirstCycleBCSwitchingCompleted ) && ( currentBalChamberSwitchingCounter >= balChamberValveClosePeriod ); + isFirstCycleNotDone = ( ( FALSE == isFirstCycleBCSwitchingCompleted ) && + ( currentBalChamberSwitchingCounter >= balChamberValveClosePeriod ) ) ? TRUE : FALSE; if ( FALSE == getBalChamberSwitchingOnlyStatus() ) { @@ -1052,7 +1053,8 @@ // Check switching cycle time or pressure check for valve closure isBothFillsComplete = ( ( TRUE == isSpentFillComplete ) && ( TRUE == isPressureStabilizedDuringFill ) ) ? TRUE : FALSE; - isFirstCycleNotDone = ( ( FALSE == isFirstCycleBCSwitchingCompleted ) && ( currentBalChamberSwitchingCounter >= balChamberValveClosePeriod ) ); + isFirstCycleNotDone = ( ( FALSE == isFirstCycleBCSwitchingCompleted ) && + ( currentBalChamberSwitchingCounter >= balChamberValveClosePeriod ) ) ? TRUE : FALSE; if ( FALSE == getBalChamberSwitchingOnlyStatus() ) { @@ -1392,7 +1394,7 @@ } } - //Update spent fill is complete + //Update spent fill is complete if ( currentBalChamberSwitchingCounter >= balChamberValveClosePeriod ) { isSpentFillComplete = TRUE;