mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-13 01:30:31 +08:00
fix
This commit is contained in:
parent
a77b3cce27
commit
73d0656f64
@ -284,11 +284,11 @@ class UserGpio:
|
||||
raise GpioChannelNotFoundError()
|
||||
return (await gout.switch(state))
|
||||
|
||||
async def pulse(self, channel: str, delay: float) -> None:
|
||||
async def pulse(self, channel: str, delay: float, wait: bool) -> None:
|
||||
gout = self.__outputs.get(channel)
|
||||
if gout is None:
|
||||
raise GpioChannelNotFoundError()
|
||||
await gout.pulse(delay)
|
||||
await gout.pulse(delay, wait)
|
||||
|
||||
# =====
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user