You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)):
The text was updated successfully, but these errors were encountered:
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 secondsreplacing the
~
's withnot
's creates a massive speed up.So the line should be
if not ((i != 0) and not (n & 0x01) and not (n & waitIRq)):
The text was updated successfully, but these errors were encountered: