Go Down

Topic: Wiegand RFID (attachinterrupt) + new functions (Read 1 time) previous topic - next topic


But anyway...how does a simple Serial.println messes up the value of my flagdone?

By not declaring variables used in interrupt routines volatile. As I told you the results are weired, sometimes it works, insert a single line of code somewhere and it stops working. You didn't believe me but if you disassemble the code you'll see what I mean.

Go Up