I made a mistake I can’t understand. It’s a bit like quantum physics. If you watch, it is were you think it is. If not, it’s everywhere.
I’m counting up a int „i_timer“ every time a timer interrupt is triggered. My main program is waiting in a while till i_timer is bigger then 0.
The “if” condition inside the while only is meet if i_timer is printed in every circle of the while.
When i_timer is not printed, the condition is never meet.
I tried different delays instead of the print, to make sure is not related to the time spent printing.
The serial.print Funktion somehow must erases some mistake I made. Maybe someone knows what it could be, so I can find my mistake.