remove the flush=True argument
it causes a failure in Circuitpython
This commit is contained in:
parent
915b2e2eb0
commit
9f9bd82849
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ print('Waiting for RFID/NFC card...')
|
||||||
while True:
|
while True:
|
||||||
# Check if a card is available to read
|
# Check if a card is available to read
|
||||||
uid = pn532.read_passive_target(timeout=0.5)
|
uid = pn532.read_passive_target(timeout=0.5)
|
||||||
print('.', end="", flush=True)
|
print('.', end="")
|
||||||
# Try again if no card is available.
|
# Try again if no card is available.
|
||||||
if uid is None:
|
if uid is None:
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue