Skip to content

Syntax error in MFRC522.py causing a massive slowdown  #90

Description

@jah0383

In MFRC522.py on line 199 the code is
if ~((i!=0) and ~(n&0x01) and ~(n&waitIRq)):
It should use not instead of ~ since at the moment the entire loop only exits when done 2000 times, which takes 1.6 seconds
replacing the ~'s with not's creates a massive speed up.
So the line should be
if not ((i != 0) and not (n & 0x01) and not (n & waitIRq)):

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions