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)):
In MFRC522.py on line 199 the code is
if ~((i!=0) and ~(n&0x01) and ~(n&waitIRq)):
It should usenot
instead of~
since at the moment the entire loop only exits when done 2000 times, which takes 1.6 seconds replacing the~
's withnot
's creates a massive speed up. So the line should beif not ((i != 0) and not (n & 0x01) and not (n & waitIRq)):