Small bugfix while waiting for first two interrupts before entering mainloop
This commit is contained in:
parent
771cc49e2d
commit
284e8d8209
@ -34,8 +34,10 @@ def readgpio():
|
||||
gpioevent = gpiopoll.poll()
|
||||
gpio.read()
|
||||
gpio.seek(0)
|
||||
last = time.time()
|
||||
if sys.stdout.isatty():
|
||||
print("wait for 1 interrupt....")
|
||||
gpioevent = gpiopoll.poll()
|
||||
last = time.time()
|
||||
gpio.read()
|
||||
gpio.seek(0)
|
||||
if sys.stdout.isatty():
|
||||
|
Loading…
x
Reference in New Issue
Block a user