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