Problem with modulo (%) and reset

I'm sorry to have wasted the board's bandwidth on something that couldn't help.

You did not waste the band. You was the only one who really tried the code and showed to me that the problem can be repeated elsewhere than in my environment. So lot of thanks and Happy New Year :smiley: