This commit is contained in:
Devaev Maxim 2020-09-07 06:07:03 +03:00
parent a77b3cce27
commit 73d0656f64

View File

@ -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)
# ===== # =====