Skip to content

Commit

Permalink
RFID fix: 2-3bit junk appear on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
enesbcs committed Dec 31, 2018
1 parent 765848b commit 5fcca0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _P008_Wiegand_RFID.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def run(self):
if (wiegand_io.pendingbitcount() > 0):
wstr,wbl = wiegand_io.wiegandread()
# print("Python res:",wstr,wbl)
if wbl>2 and wbl<5:
if wbl>3 and wbl<5: # sometimes 2-3bit junk appear on powering up!
self.analyzekey(wstr)
elif wbl>6 and wbl<9:
self.analyzekey(wstr[:4])
Expand Down

0 comments on commit 5fcca0c

Please sign in to comment.