summaryrefslogtreecommitdiff
path: root/kvmd/plugins/hid/serial.py
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-10-03 03:34:55 +0300
committerDevaev Maxim <[email protected]>2020-10-03 05:02:14 +0300
commitcccf44655aadc80d2d535033951e7af9ac65a271 (patch)
tree1ea9607e91e0189a0d73e87bed39b14c29213585 /kvmd/plugins/hid/serial.py
parent872145590a3227b799ae7f5e7731dfc15967d63c (diff)
common env variables
Diffstat (limited to 'kvmd/plugins/hid/serial.py')
-rw-r--r--kvmd/plugins/hid/serial.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/kvmd/plugins/hid/serial.py b/kvmd/plugins/hid/serial.py
index c7c1164d..13a2db6d 100644
--- a/kvmd/plugins/hid/serial.py
+++ b/kvmd/plugins/hid/serial.py
@@ -43,6 +43,7 @@ from ...logging import get_logger
from ...keyboard.mappings import KEYMAP
+from ... import env
from ... import aiotools
from ... import aiomulti
from ... import aioproc
@@ -168,7 +169,7 @@ class _Gpio:
if self.__reset_pin >= 0:
assert self.__chip is None
assert self.__reset_line is None
- self.__chip = gpiod.Chip(aiogp.DEVICE_PATH)
+ self.__chip = gpiod.Chip(env.GPIO_DEVICE_PATH)
self.__reset_line = self.__chip.get_line(self.__reset_pin)
self.__reset_line.request("kvmd::hid-serial::reset", gpiod.LINE_REQ_DIR_OUT, default_vals=[0])