Problem with onChange function and millis delays in switch

You are welcome. I'm glad it is working now.

You should post your updated code so that the forum helpers can make more relevant suggestions.