Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added option for multiple RFID Readers #1012

Merged
merged 8 commits into from
Jul 16, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixed bug when adding devices to read
  • Loading branch information
Markus Prochaska authored and Markus Prochaska committed Jun 14, 2020
commit 0ba32724bb6f4ada371ab26e57b87ba3ac39987a
4 changes: 2 additions & 2 deletions scripts/Reader.py.experimental.Multi
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ class Reader(object):
dev_name_phys = dev_key.rstrip().split(';', 1)
dev_name = dev_name_phys[0]
dev_phys = ''
if len(dev_name) > 1:
dev_phys = dev_name_phys[0]
if len(dev_name_phys) > 1:
dev_phys = dev_name_phys[1]
if device.name == dev_name and device.phys == dev_phys:
if dev_name == 'MFRC522':
self.devs.append(Mfrc522Reader())
Expand Down