Skip to content

Commit 6e2b2a6

Browse files
authored
Merge pull request #18 from jerryneedell/jerryn_ntag203
fix readwrite_ntag203.py example
2 parents c8acb3f + e97487a commit 6e2b2a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/readwrite_ntag2xx.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
while True:
6969
# Check if a card is available to read
7070
uid = pn532.read_passive_target(timeout=0.5)
71-
print('.', end="", flush=True)
71+
print('.', end="")
7272
# Try again if no card is available.
7373
if uid is not None:
7474
break
@@ -78,7 +78,7 @@
7878

7979
# Set 4 bytes of block to 0xFEEDBEEF
8080
data = bytearray(4)
81-
data[0:4] = [0xFE, 0xED, 0xBE, 0xEF]
81+
data[0:4] = b'\xFE\xED\xBE\xEF'
8282
# Write 4 byte block.
8383
pn532.ntag2xx_write_block(6, data)
8484
# Read block #6

0 commit comments

Comments
 (0)