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/ugpio/gpio.py | |
parent | 87cc8cf7b0e00f7f0a9badf551067aafad6da4ce (diff) |
refactoring
Diffstat (limited to 'kvmd/plugins/ugpio/gpio.py')
-rw-r--r-- | kvmd/plugins/ugpio/gpio.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/plugins/ugpio/gpio.py b/kvmd/plugins/ugpio/gpio.py index 4d50d4fc..d7f390a7 100644 --- a/kvmd/plugins/ugpio/gpio.py +++ b/kvmd/plugins/ugpio/gpio.py @@ -60,7 +60,7 @@ class Plugin(BaseUserGpioDriver): assert self.__reader is None self.__reader = aiogp.AioReader( path=env.GPIO_DEVICE_PATH, - consumer="kvmd::ugpio-gpio::inputs", + consumer="kvmd::gpio::inputs", pins=self.__input_pins, notifier=self._notifier, ) @@ -68,7 +68,7 @@ class Plugin(BaseUserGpioDriver): self.__chip = gpiod.Chip(env.GPIO_DEVICE_PATH) for (pin, initial) in self.__output_pins.items(): line = self.__chip.get_line(pin) - line.request("kvmd::ugpio-gpio::outputs", gpiod.LINE_REQ_DIR_OUT, default_vals=[int(initial or False)]) + line.request("kvmd::gpio::outputs", gpiod.LINE_REQ_DIR_OUT, default_vals=[int(initial or False)]) self.__output_lines[pin] = line async def run(self) -> None: |