diff options
author | Devaev Maxim <[email protected]> | 2020-09-14 01:34:15 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-09-14 01:34:23 +0300 |
commit | ee10435b818e0bf8ebf749a209969166502d78d4 (patch) | |
tree | 02db1948ed4a956d0cd2f6c5fd0b12d03804d3b2 /kvmd/plugins/hid/serial.py | |
parent | 91eb257f3df32487d00ca457f9d78eabd354ce54 (diff) |
common gpio path variable
Diffstat (limited to 'kvmd/plugins/hid/serial.py')
-rw-r--r-- | kvmd/plugins/hid/serial.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kvmd/plugins/hid/serial.py b/kvmd/plugins/hid/serial.py index 27218323..c07ea45c 100644 --- a/kvmd/plugins/hid/serial.py +++ b/kvmd/plugins/hid/serial.py @@ -170,7 +170,7 @@ class _Gpio: if self.__reset_pin >= 0: assert self.__chip is None assert self.__reset_line is None - self.__chip = gpiod.Chip("/dev/gpiochip0") + self.__chip = gpiod.Chip(aiogp.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_val=0) |