summaryrefslogtreecommitdiff
path: root/kvmd/plugins/msd
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-09-14 01:34:15 +0300
committerDevaev Maxim <[email protected]>2020-09-14 01:34:23 +0300
commitee10435b818e0bf8ebf749a209969166502d78d4 (patch)
tree02db1948ed4a956d0cd2f6c5fd0b12d03804d3b2 /kvmd/plugins/msd
parent91eb257f3df32487d00ca457f9d78eabd354ce54 (diff)
common gpio path variable
Diffstat (limited to 'kvmd/plugins/msd')
-rw-r--r--kvmd/plugins/msd/relay.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kvmd/plugins/msd/relay.py b/kvmd/plugins/msd/relay.py
index 227dff46..cec03377 100644
--- a/kvmd/plugins/msd/relay.py
+++ b/kvmd/plugins/msd/relay.py
@@ -174,7 +174,7 @@ class _Gpio:
assert self.__target_line is None
assert self.__reset_line is None
- self.__chip = gpiod.Chip("/dev/gpiochip0")
+ self.__chip = gpiod.Chip(aiogp.DEVICE_PATH)
self.__target_line = self.__chip.get_line(self.__target_pin)
self.__target_line.request("kvmd/msd-relay/target", gpiod.LINE_REQ_DIR_OUT, default_val=0)