sensors: Set event messages enabled bit
Should be set to 1.
Tested-by: ipmi get sensor reading raw cmd
Change-Id: I7597cef9a12ec2839983fda3310b4d4071e690f2
Signed-off-by: James Feist <james.feist@linux.intel.com>
diff --git a/src/sensorcommands.cpp b/src/sensorcommands.cpp
index 084b69d..4b68d83 100644
--- a/src/sensorcommands.cpp
+++ b/src/sensorcommands.cpp
@@ -243,6 +243,8 @@
scaleIPMIValueFromDouble(reading, mValue, rExp, bValue, bExp, bSigned);
msgReply->operation =
static_cast<uint8_t>(IPMISensorReadingByte2::sensorScanningEnable);
+ msgReply->operation |=
+ static_cast<uint8_t>(IPMISensorReadingByte2::eventMessagesEnable);
msgReply->indication[0] = 0; // ignore for non-threshold sensors
msgReply->indication[1] = 0;