diff options
Diffstat (limited to 'occ_status.hpp')
-rw-r--r-- | occ_status.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/occ_status.hpp b/occ_status.hpp index 2e12806..23b2080 100644 --- a/occ_status.hpp +++ b/occ_status.hpp @@ -7,6 +7,8 @@ #include <org/open_power/Control/Host/server.hpp> #include "occ_events.hpp" #include "occ_device.hpp" +#include "i2c_occ.hpp" + namespace open_power { namespace occ @@ -59,7 +61,11 @@ class Status : public Interface callBack(callBack), instance(((this->path.back() - '0'))), device(event, +#ifdef I2C_OCC + i2c_occ::getI2cDeviceName(path), +#else name + std::to_string(instance + 1), +#endif std::bind(&Status::deviceErrorHandler, this)), hostControlSignal( bus, |