It was that I have not disabled the watchdog before the code in question. that explains why I was randomly popping up in earlier points in the loop without proceeding. Thank you very much for your help.
↧