Home
last modified time | relevance | path

Searched hist:"190 f6d06" (Results 1 – 1 of 1) sorted by relevance

/openbmc/phosphor-virtual-sensor/
H A DvirtualSensor.cpp190f6d06 Sat May 21 10:26:15 CDT 2022 Jiaqing Zhao <jiaqing.zhao@intel.com> Fix default ValidInput values for DBus configuration

{Min,Max}ValidInput are optional properties defined in entity-manager
schema, currently they are initialized to NaN by default, causing
failure when comparing MinValidInput <= InputValue <= MaxValidInput in
sensorInRange(). This patch fixes it by setting the default value to
+/-NaN.

Tested:
Verified sensorInRange() no longer returns false when valid reading
value is given and virtual sensor reading is successfully updated.

Change-Id: If48a07eea95c8c971565e6e5ed429a1272ad824f
Signed-off-by: Jiaqing Zhao <jiaqing.zhao@intel.com>