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/main.cpp b/main.cpp
index 8e781bc..5289101 100644
--- a/main.cpp
+++ b/main.cpp
@@ -83,7 +83,7 @@
}
}
- auto modeControlBus = sdbusplus::bus::new_default();
+ auto modeControlBus = sdbusplus::bus::new_system();
#if CONFIGURE_DBUS
{
dbus_configuration::init(modeControlBus);