ibm-openbmc / dev

Product Development Project Mgmt and Tracking
16 stars 2 forks source link

Change function setSensorValueToNonFunctional #3518

Closed baileysh closed 2 years ago

baileysh commented 2 years ago

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.