Index: firmware/App/Modes/FPModes/ModePreGenPermeate.c =================================================================== diff -u -r7f54a204787abc0840b3593101c8be64de3b8e65 -r43f8294ef42f50f25c8add7c7240a18f184a9a3a --- firmware/App/Modes/FPModes/ModePreGenPermeate.c (.../ModePreGenPermeate.c) (revision 7f54a204787abc0840b3593101c8be64de3b8e65) +++ firmware/App/Modes/FPModes/ModePreGenPermeate.c (.../ModePreGenPermeate.c) (revision 43f8294ef42f50f25c8add7c7240a18f184a9a3a) @@ -52,7 +52,6 @@ static U32 preGenPDataPublicationTimerCounter; ///< Used to schedule pre generate Permeate data publication to CAN bus. static OVERRIDE_U32_T preGenPDataPublishInterval; ///< Pre Generate Permeate mode data publish interval. static BOOL isPreGenComplete; ///< Flag indicating if Pre generation has completed. -static BOOL isFlowControlStabilized; ///< Flag indicating if flow control has stabilized. static U32 pendingStartPreGenRequest; ///< Flag indicating DD has requested FP start the generate permeate. static U32 verifyWaterTimer; @@ -85,7 +84,6 @@ pendingStartPreGenRequest = FALSE; isPreGenComplete = FALSE; verifyWaterTimer = 0; - isFlowControlStabilized = FALSE; } /*********************************************************************//** @@ -348,12 +346,7 @@ //Stay in this state for 25 seconds to stablize flow control if ( TRUE == didTimeout( verifyWaterTimer, FLOW_CONTROL_STABLIZED_TIMEOUT_MS ) ) { - isFlowControlStabilized = TRUE; - } - - // check next 5 seconds for water quality - if ( TRUE == isFlowControlStabilized ) - { + // check next 5 seconds for water quality // check permeate high flow rate is within range checkPermeateHighFlow(); // check low flow rate is within range @@ -369,7 +362,6 @@ // wait 30 second before moving to water generation mode if ( TRUE == didTimeout( verifyWaterTimer, VERIFY_WATER_TIMEOUT_MS ) ) { - isFlowControlStabilized = FALSE; transitionToGenPermeateMode(); requestGenWaterStart(); // transition function will clear start flag isPreGenComplete = TRUE;