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

antennaOn ifstatement #58

Open
SindreBrurberg opened this issue Jul 29, 2018 · 1 comment
Open

antennaOn ifstatement #58

SindreBrurberg opened this issue Jul 29, 2018 · 1 comment

Comments

@SindreBrurberg
Copy link

Im not sure if this is a issue or not, but i have had a look at the antennaOn function witch on line 157 contains this if(~(temp & 0x03)):
As far as my testing goes I am not able to make this statement return true. This is because of the ~ bitwize complement never return 0.
Would any of you be able to shed some light on what this if statement does? or is suppose to do?
I can see that you are checking if the "output signal on pin TX1 delivers the 13.56 MHz energy carrier
modulated by the transmission data", also TX2. Whatever that is supposed to mean.
File: MFRC522.py

@SindreBrurberg
Copy link
Author

SindreBrurberg commented Jul 29, 2018

Would assume that the purpose is to check if the antenna is on already? Presumably if TX1 or TX2 or both were of?
if so, i think i would just replace it with temp&0x03 != 0x03

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

No branches or pull requests

1 participant