cleanup
This commit is contained in:
parent
0c35597360
commit
7f15aa81da
10
main.py
10
main.py
@ -4,14 +4,6 @@ import time
|
||||
import datetime
|
||||
import asyncio
|
||||
|
||||
def run_in_parallel(*fns):
|
||||
proc = []
|
||||
for fn in fns:
|
||||
p = Process(target=fn)
|
||||
p.start()
|
||||
proc.append(p)
|
||||
for p in proc:
|
||||
p.join()
|
||||
|
||||
PTT_IS_ON = 0
|
||||
|
||||
@ -34,4 +26,4 @@ async def ptt():
|
||||
|
||||
if __name__ == "__main__":
|
||||
# button_press(10, pigpio.EITHER_EDGE)
|
||||
asyncio.run(ptt))
|
||||
asyncio.run(ptt)
|
Loading…
x
Reference in New Issue
Block a user