mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 17:20:30 +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 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:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user