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/setsensor.cpp b/setsensor.cpp
index 3681996..fb6d297 100644
--- a/setsensor.cpp
+++ b/setsensor.cpp
@@ -26,7 +26,7 @@
sValue v{value};
std::string busname{sbusName};
- auto PropertyWriteBus = sdbusplus::bus::new_default();
+ auto PropertyWriteBus = sdbusplus::bus::new_system();
std::string path{sobjectPath};
auto pimMsg = PropertyWriteBus.new_method_call(
@@ -59,7 +59,7 @@
Value v{setValue};
std::string busname{busName};
- auto PropertyWriteBus = sdbusplus::bus::new_default();
+ auto PropertyWriteBus = sdbusplus::bus::new_system();
std::string path = GetControlPath(zone);
auto pimMsg = PropertyWriteBus.new_method_call(