diff options
author | Devaev Maxim <[email protected]> | 2020-11-12 22:36:22 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-11-12 22:36:22 +0300 |
commit | 180251ec591245ca2025341214e255e3952184d7 (patch) | |
tree | 9d7de539934e790f8593080fbd439aa565ef7297 /kvmd/plugins/hid | |
parent | 87cc8cf7b0e00f7f0a9badf551067aafad6da4ce (diff) |
refactoring
Diffstat (limited to 'kvmd/plugins/hid')
-rw-r--r-- | kvmd/plugins/hid/_mcu/gpio.py | 2 | ||||
-rw-r--r-- | kvmd/plugins/hid/spi.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/plugins/hid/_mcu/gpio.py b/kvmd/plugins/hid/_mcu/gpio.py index 87f4b547..40031e33 100644 --- a/kvmd/plugins/hid/_mcu/gpio.py +++ b/kvmd/plugins/hid/_mcu/gpio.py @@ -54,7 +54,7 @@ class Gpio: assert self.__reset_line is None self.__chip = gpiod.Chip(env.GPIO_DEVICE_PATH) self.__reset_line = self.__chip.get_line(self.__reset_pin) - self.__reset_line.request("kvmd::hid-mcu::reset", gpiod.LINE_REQ_DIR_OUT, default_vals=[int(self.__reset_inverted)]) + self.__reset_line.request("kvmd::hid::reset", gpiod.LINE_REQ_DIR_OUT, default_vals=[int(self.__reset_inverted)]) def close(self) -> None: if self.__chip: diff --git a/kvmd/plugins/hid/spi.py b/kvmd/plugins/hid/spi.py index 8af03483..de8d4978 100644 --- a/kvmd/plugins/hid/spi.py +++ b/kvmd/plugins/hid/spi.py @@ -147,7 +147,7 @@ class _SpiPhy(BasePhy): # pylint: disable=too-many-instance-attributes if self.__sw_cs_pin > 0: with contextlib.closing(gpiod.Chip(env.GPIO_DEVICE_PATH)) as chip: line = chip.get_line(self.__sw_cs_pin) - line.request("kvmd::hid-mcu::sw_cs", gpiod.LINE_REQ_DIR_OUT, default_vals=[1]) + line.request("kvmd::hid::sw_cs", gpiod.LINE_REQ_DIR_OUT, default_vals=[1]) yield line else: yield None |