Skip to content

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

@jah0383

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)):

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