mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-28 16:41:52 +08:00
otgconf: fixed read() awaiting
This commit is contained in:
@@ -108,7 +108,7 @@ class Plugin(BaseUserGpioDriver):
|
||||
|
||||
async def write(self, pin: str, state: bool) -> None:
|
||||
async with self.__lock:
|
||||
if self.read(pin) == state:
|
||||
if (await self.read(pin)) == state:
|
||||
return
|
||||
if pin == "udc":
|
||||
if state:
|
||||
|
||||
Reference in New Issue
Block a user