summaryrefslogtreecommitdiffstats
path: root/presence/gpio.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'presence/gpio.cpp')
-rw-r--r--presence/gpio.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/presence/gpio.cpp b/presence/gpio.cpp
index 28db46e..2a0a4c0 100644
--- a/presence/gpio.cpp
+++ b/presence/gpio.cpp
@@ -31,10 +31,10 @@ namespace presence
Gpio::Gpio(
const std::string& physDevice,
+ const std::string& device,
unsigned int physPin) :
currentState(false),
- evdevfd(open("/dev/input/by-path/platform-gpio-keys-event",
- O_RDONLY | O_NONBLOCK)),
+ evdevfd(open(device.c_str(), O_RDONLY | O_NONBLOCK)),
evdev(evdevpp::evdev::newFromFD(evdevfd())),
phys(physDevice),
pin(physPin),
OpenPOWER on IntegriCloud