removed error pin
This commit is contained in:
@@ -251,11 +251,10 @@ while True: # main loop
|
||||
if GPIO.input(errorPin) == True:
|
||||
if errorAdded == False:
|
||||
errors += 1
|
||||
int_time = int(time.time()) - start_time + errors * timePerError
|
||||
errorAdded = True
|
||||
else:
|
||||
errorAdded = False
|
||||
if GPIO.input(enableErrorTimeAddingPin) == True:
|
||||
int_time = int(time.time()) - start_time + errors * timePerError
|
||||
errorAdded = False
|
||||
|
||||
int_time = int(time.time()) - start_time
|
||||
|
||||
|
Reference in New Issue
Block a user