Change all default_bus back to new_system bus
new_default now returns a reference to a single bus,
phosphor-pid-control uses multiple busses so we do not
want that. This was the way it was implemented prior to
https://github.com/openbmc/sdbusplus/commit/8ca6025eed193c252149b2908c3d5e37b00b0107
Tested-by: swampd ran normally
These errors go away:
Jan 28 18:28:45 swampd[1760]: terminate called after throwing an instance of 'sdbusplus::exception::SdBusError'
Jan 28 18:28:45 swampd[1760]: what(): sd_bus_request_name: org.freedesktop.DBus.Error.InconsistentMessage: Bad message
Change-Id: I708cd5e6c45509f27d4fe783c0b0cfb52ff10336
Signed-off-by: James Feist <james.feist@linux.intel.com>
diff --git a/sensors/manager.hpp b/sensors/manager.hpp
index f4f3651..a6b4b9d 100644
--- a/sensors/manager.hpp
+++ b/sensors/manager.hpp
@@ -23,8 +23,8 @@
}
SensorManager() :
- SensorManager(std::move(sdbusplus::bus::new_default()),
- std::move(sdbusplus::bus::new_default()))
+ SensorManager(std::move(sdbusplus::bus::new_system()),
+ std::move(sdbusplus::bus::new_system()))
{
}