Add beep support for PSU
Spec requires that system will beep with pattern 1-5-1-4
if there is any PSU failure or config error.
Tested:
With two PSUs, disconnect one AC cable, or unplug one PSU,
to trigger the psu failure/config error, there is a beep.
Signed-off-by: Yong Li <yong.b.li@linux.intel.com>
Change-Id: I8664400164298fa4a35f82b79e4bf417481aabb0
diff --git a/src/PSUSensorMain.cpp b/src/PSUSensorMain.cpp
index 19286f6..90c7950 100644
--- a/src/PSUSensorMain.cpp
+++ b/src/PSUSensorMain.cpp
@@ -748,9 +748,9 @@
// OperationalStatus event
combineEvents[*psuName + "OperationalStatus"] = nullptr;
combineEvents[*psuName + "OperationalStatus"] =
- std::make_unique<PSUCombineEvent>(objectServer, io, *psuName,
- eventPathList, groupEventPathList,
- "OperationalStatus");
+ std::make_unique<PSUCombineEvent>(
+ objectServer, dbusConnection, io, *psuName, eventPathList,
+ groupEventPathList, "OperationalStatus");
}
if constexpr (DEBUG)