This commit is contained in:
Boyan 2022-07-20 19:32:26 +03:00
parent 8e6c23ae03
commit a367c27c92

View File

@ -21,7 +21,7 @@ async def button_press(gpio:int, level) -> bool:
asyncio.sleep(.5)
async def ptt():
await asyncio.create_task(button_press(10, pigpio.EITHER_EDGE))
asyncio.create_task(button_press(10, pigpio.EITHER_EDGE))
while True:
if PTT_IS_ON == 1:
print("HEEEEEE")