TinyReflowController icon indicating copy to clipboard operation
TinyReflowController copied to clipboard

millis() function hangs oled

Open unbracedcat500 opened this issue 4 years ago • 2 comments

Hello, I've noticed the IF statement (if millis() > buzzerPeriod) in case REFLOW_STATE_COMPLETE hangs the OLED. Even after pressing RESET button or re uploading the code, the OLED remains in the previous state(NO ADAFRUIT LOGO appears). Is it okay if I use delay function instead of millis to turn ON the buzzer?

unbracedcat500 avatar Aug 23 '20 17:08 unbracedcat500

It shouldn't, it's just a check whether the time has lapsed. I have never seen it hang until today at that stage. You can't use delay because we need to stay in that state while servicing other processes (read sensor, update OLED). Using delay means blocking those processes.

rocketscream avatar Aug 24 '20 15:08 rocketscream

i am having the same problems, has anyone found a solution?

VILLO88 avatar Nov 15 '20 23:11 VILLO88