Small bugfix while waiting for first two interrupts before entering mainloop

This commit is contained in:
telegnom 2015-04-08 13:41:58 +02:00
parent 771cc49e2d
commit 284e8d8209

View File

@ -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():