Index: firmware/App/Modes/ModeStandby.c =================================================================== diff -u -r3643a2e648ab2b216fd08579e56bdc02fb94836d -rf46f00ed7e9e3d3483c8fb1a4c987bd1691501bb --- firmware/App/Modes/ModeStandby.c (.../ModeStandby.c) (revision 3643a2e648ab2b216fd08579e56bdc02fb94836d) +++ firmware/App/Modes/ModeStandby.c (.../ModeStandby.c) (revision f46f00ed7e9e3d3483c8fb1a4c987bd1691501bb) @@ -7,8 +7,8 @@ * * @file ModeStandby.c * -* @author (last) “rkallala” -* @date (last) 09-Dec-2025 +* @author (last) “Raghu +* @date (last) 04-Feb-2026 * * @author (original) Vinayakam Mani * @date (original) 07-Aug-2024 @@ -18,6 +18,7 @@ #include "BalancingChamber.h" #include "ConcentratePumps.h" #include "ConductivitySensors.h" +#include "FPOperationModes.h" #include "Heaters.h" #include "ModeFault.h" #include "ModeStandby.h" @@ -157,6 +158,7 @@ static DD_STANDBY_MODE_STATE_T handleStandbyIdleState( void ) { DD_STANDBY_MODE_STATE_T state = DD_STANDBY_MODE_STATE_IDLE; + FP_OP_MODE_T fpMode = getCurrentFPOperationMode(); //Testing hydChamberWaterInletControl(); @@ -168,8 +170,17 @@ // } if ( TRUE == pendingStartDDPreGenRequest ) { - pendingStartDDPreGenRequest = FALSE; - requestNewOperationMode( DD_MODE_PREG ); + // wait for IOFP GENP mode and when IOFP manual control is not set + if ( ( FP_MODE_GENP == fpMode ) && ( getTestConfigStatus( TEST_CONFIG_DD_RUN_SOLO ) == FALSE ) ) + { + pendingStartDDPreGenRequest = FALSE; + requestNewOperationMode( DD_MODE_PREG ); + } + else if ( getTestConfigStatus( TEST_CONFIG_DD_RUN_SOLO ) == TRUE ) + { + pendingStartDDPreGenRequest = FALSE; + requestNewOperationMode( DD_MODE_PREG ); + } } //Test request to handle only balancing chamber switching else if ( TRUE == pendingBalanceChamberSwOnlyRequest )