otgconf: fixed read() awaiting

This commit is contained in:
Maxim Devaev 2025-06-11 05:12:54 +03:00
parent b28275b042
commit fe1f821715

View File

@ -108,7 +108,7 @@ class Plugin(BaseUserGpioDriver):
async def write(self, pin: str, state: bool) -> None: async def write(self, pin: str, state: bool) -> None:
async with self.__lock: async with self.__lock:
if self.read(pin) == state: if (await self.read(pin)) == state:
return return
if pin == "udc": if pin == "udc":
if state: if state: