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

Refactor Wiegand reading function #471

Merged
merged 1 commit into from
Jan 14, 2022

Conversation

matjack1
Copy link
Collaborator

I'm trying to add some functionality to the Wiegand reader and I've noticed that the code is duplicated between the official board and the others.

In extracting the code in the function I've minimized the changes.

While doing so I've also found a bug when using the keypad as a return statement was commented out, for every keypress the function was going ahead and testing if the user was in the memory, even if the uid wasn't filled in.

I don't have yet an official board to test (soon though!), but the code is building properly.

To remove duplicated code in RFID reading section.
@omersiar
Copy link
Collaborator

neat, thanks for your work. 🥳

@omersiar omersiar merged commit f8d8375 into esprfid:dev Jan 14, 2022
@matjack1 matjack1 deleted the refactor-wiegand branch January 17, 2022 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants