Open CptAwe opened 6 years ago
Well, after some sleep I solved the issue.
For future reference: The Arduino will reset itself if you try to access a value of an array outside of it's original size (see: ResetInfo() > "for (int j=0; j<=4; j++)")
This issue is solved and has nothing to do with the plugin!
Edit: this issue is solved. See solution at the bottom.
If the following code is compiled through Stino then the arduino will reset itself endlessly. On the other hand, if the code is compiled through the arduino IDE then everything is fine.
The problem seems to appear when the three functions (WakeUp(), ShowInfo(), Select_level_1()) in loop() are executed in that order.
I suspect it has something to do with the MFRC522 or SPI libraries or the way serial communication is compiled and handled through Stino.
Sorry for the endless code, but I don't know exactly where the problem is.
Environment: