summaryrefslogtreecommitdiffstats
path: root/occ_device.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'occ_device.hpp')
-rw-r--r--occ_device.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/occ_device.hpp b/occ_device.hpp
index 6538597..a2b4e85 100644
--- a/occ_device.hpp
+++ b/occ_device.hpp
@@ -5,6 +5,8 @@
#include "occ_events.hpp"
#include "occ_errors.hpp"
#include "config.h"
+
+
namespace open_power
{
namespace occ
@@ -34,7 +36,11 @@ class Device
Device(EventPtr& event,
const std::string& name,
std::function<void()> callBack = nullptr) :
+#ifdef I2C_OCC
+ config(name),
+#else
config(name + '-' + "dev0"),
+#endif
errorFile(fs::path(config) / "occ_error"),
error(event, errorFile, callBack)
{
OpenPOWER on IntegriCloud