fixed indent

This commit is contained in:
Boyan 2022-07-20 19:19:15 +03:00
parent 9c2eb6379b
commit 1bbe4f4086

View File

@ -14,6 +14,7 @@ pi.set_mode(10, pigpio.INPUT)
async def button_press(gpio:int, level) -> bool:
while True:
print("a")
if(pi.read(gpio)!=0):
PTT_IS_ON = 1
if(pi.read(gpio)==0):
@ -22,6 +23,7 @@ async def button_press(gpio:int, level) -> bool:
async def ptt():
while True:
print("b")
if PTT_IS_ON == 1:
print("HEEEEEE")