Move RFID_SERIAL.flushinput()

I think this makes more sense in the RFID reading loop

Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
This commit is contained in:
Anna Schumaker 2015-04-07 14:24:55 -04:00
parent 27fdb0fd9c
commit 4b3d5282ae
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,6 @@ def verify_key(key):
open_door()
time.sleep(5)
close_door()
RFID_SERIAL.flushInput() # ignore errors, no data
while True:
@ -110,3 +109,4 @@ while True:
key = string[1:11] #exclude start x0A and stop x0D bytes
print(key)
verify_key(key)
RFID_SERIAL.flushInput() # ignore errors, no data