Consider nan too as an override value

Sensors can be overridden for testing purpose. Start treating
nan too as an override value. With this commit, the only way
to reset the override is to restart the service / BMC F/W.

Unit-test:
1. Verified that overriden value is taken effect by setting the value
property
2. Tried setting nan to the value property and verified it's still
in overriden state.

Change-Id: I6a931377bdaf918e37057275e1dde93f0fd5aa22
Signed-off-by: Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>
diff --git a/src/CPUSensor.cpp b/src/CPUSensor.cpp
index aebaa4c..d54263a 100644
--- a/src/CPUSensor.cpp
+++ b/src/CPUSensor.cpp
@@ -99,7 +99,7 @@
             float nvalue = std::stof(response);
             responseStream.clear();
             nvalue /= CPUSensor::sensorScaleFactor;
-            if (!isnan(overriddenValue))
+            if (overridenState)
             {
                 nvalue = overriddenValue;
             }