to make this function more readable and versatile the code review suggestion was to
Consolidate setSensorValueToNonFunctional (should have been State and not Value) and setSensorValueToNaN
to UpdateFuncStateValue( Instance, Func, Value)
This would loop through the OCC instance and set the Func State, and Value State if directed.
NOTE: currently if Functional State is to be set to False, then the Value should be Nan so no one uses old data.
to make this function more readable and versatile the code review suggestion was to Consolidate setSensorValueToNonFunctional (should have been State and not Value) and setSensorValueToNaN to UpdateFuncStateValue( Instance, Func, Value) This would loop through the OCC instance and set the Func State, and Value State if directed.
NOTE: currently if Functional State is to be set to False, then the Value should be Nan so no one uses old data.