Small bugfix while waiting for first two interrupts before entering mainloop
This commit is contained in:
		@@ -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():                                                                                                                                                                            
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user