Revert "log debug information for sensor threshold assert events"
This reverts commit 9bf6804c2d76b92005ad9851cb052d407ea3117f.
This causes ipmbsensor crash
Change-Id: I8517d801ea1598b190c140f317ef29d1bc172ee0
Signed-off-by: Zhikui Ren <zhikui.ren@intel.com>
diff --git a/src/IpmbSensor.cpp b/src/IpmbSensor.cpp
index 53c0f12..bc9d842 100644
--- a/src/IpmbSensor.cpp
+++ b/src/IpmbSensor.cpp
@@ -241,6 +241,7 @@
return false;
}
resp = data[0];
+
return true;
}
case (ReadingFormat::byte3):
@@ -347,18 +348,6 @@
read();
return;
}
- else
- {
- // rawValue only used in debug logging
- // up to 5th byte in data are used to derive value
- size_t end = std::min(sizeof(uint64_t), data.size());
- uint64_t rawData = 0;
- for (size_t i = 0; i < end; i++)
- {
- reinterpret_cast<uint8_t*>(rawData)[i] = data[i];
- }
- rawValue = static_cast<double>(rawData);
- }
/* Adjust value as per scale and offset */
value = (value * scaleVal) + offsetVal;