It's not so much empty and full - neither is empty - it's more like start and final weights. Consider renaming these. Also, consider moving these declarations to top of module. Nothing wrong with them being here, but the style for this code base has been to declare everything at top of module.
I think this whole condition should be removed. If we are taking baseline reading for a reservoir, it is not time to do the drift check yet. Just need to save the readings here.
When transition to case DG_MODE_STAN: currentSubMode = transitionToStandbyMode(); break; transitionToStandbyMode is called and deenergizeActuators() is invoked to init all actuators to desired state.
// Turn off the UV reactors turnOffUVReactor( INLET_UV_REACTOR ); turnOffUVReactor( OUTLET_UV_REACTOR );
Is ACID_TEST_CD2_TCD the right reference value for this check? Should we even be using the isValueWithinPercentRange function here? I think averageConductivity is already a percentage so you can just see if it's less than 5%.