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