From 94dca7d7c677b62b1e8645afcf721118c7a60833 Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Thu, 31 Mar 2022 03:37:04 +0300 Subject: simplified find_udc() --- kvmd/plugins/ugpio/otgbind.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kvmd/plugins/ugpio') diff --git a/kvmd/plugins/ugpio/otgbind.py b/kvmd/plugins/ugpio/otgbind.py index 978a0154..43fc32fe 100644 --- a/kvmd/plugins/ugpio/otgbind.py +++ b/kvmd/plugins/ugpio/otgbind.py @@ -60,7 +60,7 @@ class Plugin(BaseUserGpioDriver): return str def prepare(self) -> None: - self.__udc = usb.find_udc(self.__udc)[0] + self.__udc = usb.find_udc(self.__udc) get_logger().info("Using UDC %s", self.__udc) async def run(self) -> None: -- cgit v1.2.3