get rid of otgbind's cleanup and fixed hid for this

This commit is contained in:
Maxim Devaev
2022-03-31 04:44:03 +03:00
parent c4ca7011bf
commit 17412be3fe
2 changed files with 11 additions and 11 deletions

View File

@@ -92,10 +92,6 @@ class Plugin(BaseUserGpioDriver):
except Exception:
logger.exception("Unexpected OTG-bind watcher error")
async def cleanup(self) -> None:
with open(self.__ctl_path) as ctl_file:
ctl_file.write(self.__udc)
async def read(self, pin: str) -> bool:
_ = pin
with open(self.__ctl_path) as ctl_file: