Add control ObjectManager 14ed5e995f2a9893e63a6f83318565102ca3fca7 seems to have exposed the fact that an ObjectManager is required on the /xyz/openbmc_project/control namespace. It's not clear why, and we need to get it documented, but fix the bug. Tested: Code compiles. The submitter of this suggestion has tested on his platform, and it resolves the immediate crash. Signed-off-by: Ed Tanous <edtanous@google.com> Change-Id: I7120e218bc800ae5bebb0a374372d206d97c58d3
diff --git a/src/FanMain.cpp b/src/FanMain.cpp index b94fb45..765a9d0 100644 --- a/src/FanMain.cpp +++ b/src/FanMain.cpp
@@ -545,6 +545,7 @@ sdbusplus::asio::object_server objectServer(systemBus, true); objectServer.add_manager("/xyz/openbmc_project/sensors"); + objectServer.add_manager("/xyz/openbmc_project/control"); systemBus->request_name("xyz.openbmc_project.FanSensor"); boost::container::flat_map<std::string, std::shared_ptr<TachSensor>> tachSensors;