summaryrefslogtreecommitdiffstats
path: root/occ_status.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'occ_status.hpp')
-rw-r--r--occ_status.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/occ_status.hpp b/occ_status.hpp
index 9e6c687..859b5b0 100644
--- a/occ_status.hpp
+++ b/occ_status.hpp
@@ -65,9 +65,10 @@ class Status : public Interface
instance(((this->path.back() - '0'))),
device(event,
#ifdef I2C_OCC
- i2c_occ::getI2cDeviceName(path),
+ fs::path(DEV_PATH) / i2c_occ::getI2cDeviceName(path),
#else
- sysfsName + "." + std::to_string(instance + 1),
+ fs::path(DEV_PATH) /
+ fs::path(sysfsName + "." + std::to_string(instance + 1)),
#endif
manager, *this,
std::bind(std::mem_fn(&Status::deviceErrorHandler), this,
OpenPOWER on IntegriCloud