Index: firmware/App/Modes/ModeFill.c =================================================================== diff -u -r96dd3e3d17fdfd5b70870bfc15d12a147f4900ee -r2cc816226fc1be6c82aecbb3eee0408dafe559b5 --- firmware/App/Modes/ModeFill.c (.../ModeFill.c) (revision 96dd3e3d17fdfd5b70870bfc15d12a147f4900ee) +++ firmware/App/Modes/ModeFill.c (.../ModeFill.c) (revision 2cc816226fc1be6c82aecbb3eee0408dafe559b5) @@ -139,7 +139,9 @@ static U32 pumpSpeedIndex; ///< Index used to access the desired pump speed in roPumpFlushBubblesSpeed table. static BOOL havePauseActuatorsBeenSet; ///< Flag to indicate the actuators have been set to pause for the first time. -static BOOL hasROOnlyModeBeenEnabled; ///< Flag to indicate the RO only mode has been set or not. +// NOTE: This variable should be initialized here because the init function is called every time and then this variable is set to FALSE even if the settings from the +// UI wants the RO only mode. +static BOOL hasROOnlyModeBeenEnabled = FALSE; ///< Flag to indicate the RO only mode has been set or not. static OVERRIDE_F32_T usedAcidVolumeML = { 0.0, 0.0, 0.0, 0.0 }; ///< The integrated acid concentration volume has been used in mL. static OVERRIDE_F32_T usedBicarbVolumeML = { 0.0, 0.0, 0.0, 0.0 }; ///< The integrated bicarb concentration volume has been used in mL. static OVERRIDE_U32_T fillModeDataPublishInterval = { FILL_MODE_DATA_PUB_INTERVAL, @@ -195,7 +197,6 @@ sumFillCPoConductivity = 0.0F; sumFillRejRatio = 0.0F; fillCPoConductivitySampleCnt = 0; - hasROOnlyModeBeenEnabled = FALSE; } /*********************************************************************//**