mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-13 01:30:31 +08:00
otgconf: fixed read() awaiting
This commit is contained in:
parent
b28275b042
commit
fe1f821715
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user