diff options
author | Maxim Devaev <[email protected]> | 2021-09-07 08:55:49 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2021-09-07 10:31:28 +0300 |
commit | cc5b2a42b8acbaa3bc62a8a1850370f19a44d392 (patch) | |
tree | 9c43b7dbdce2309c555002278d2f78eb5fe3a626 /kvmd/plugins/ugpio/otgbind.py | |
parent | ce5cd50d51797ac9ba642bf70aa5e36b4997cbe4 (diff) |
refactoring
Diffstat (limited to 'kvmd/plugins/ugpio/otgbind.py')
-rw-r--r-- | kvmd/plugins/ugpio/otgbind.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/kvmd/plugins/ugpio/otgbind.py b/kvmd/plugins/ugpio/otgbind.py index de8ed5b6..6dec46c9 100644 --- a/kvmd/plugins/ugpio/otgbind.py +++ b/kvmd/plugins/ugpio/otgbind.py @@ -23,8 +23,6 @@ import os import asyncio -from typing import Optional - from ...logging import get_logger from ...inotify import InotifyMask @@ -52,14 +50,6 @@ class Plugin(BaseUserGpioDriver): self.__udc = udc self.__driver = "" - def register_input(self, pin: int, debounce: float) -> None: - _ = pin - _ = debounce - - def register_output(self, pin: int, initial: Optional[bool]) -> None: - _ = pin - _ = initial - def prepare(self) -> None: (self.__udc, self.__driver) = usb.find_udc(self.__udc) get_logger().info("Using UDC %s", self.__udc) @@ -93,9 +83,6 @@ class Plugin(BaseUserGpioDriver): except Exception: logger.exception("Unexpected OTG-bind watcher error") - async def cleanup(self) -> None: - pass - async def read(self, pin: int) -> bool: _ = pin return os.path.islink(self.__get_driver_path(self.__udc)) |