Problem with onChange function and millis delays in switch

Glad it works now thanks to @ptillisch!

And you see how relevant it was to post the complete sketch :wink:

Please do not forget to mark @ptillisch ' s post as the solution!

Good luck and have fun with Arduino!

ec2021