Index: firmware/App/Modes/FPModes/ModePreGenPermeate.c =================================================================== diff -u -r3b38773ea822bb860a0fd3af416d2380a095b499 -rbcfded547027b171384c2292036033b6f0477981 --- firmware/App/Modes/FPModes/ModePreGenPermeate.c (.../ModePreGenPermeate.c) (revision 3b38773ea822bb860a0fd3af416d2380a095b499) +++ firmware/App/Modes/FPModes/ModePreGenPermeate.c (.../ModePreGenPermeate.c) (revision bcfded547027b171384c2292036033b6f0477981) @@ -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; } /*********************************************************************//** @@ -349,12 +347,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 @@ -370,7 +363,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;