Can't stop timer from REPL? Keyboard interrupt does nothing? #11256
Replies: 4 comments
-
Well, I finally got control back via a soft reset then CNTRL-B, oir was it CNTRL-A then CNTRL-B? Either way the timers finally stopped, then I had to load os module and explicitly delete the main.py. AM CALLING timer.deinit() for both timers on my ESP32 under the keyboard interrupt handler AND in the finally section, but deinit apparently DOES NOT stop timers. I found a reference this bug? |
Beta Was this translation helpful? Give feedback.
-
HOW do you stop timers? |
Beta Was this translation helpful? Give feedback.
-
I don't know other ways to stop timers, but it is a good idea to start main.py with
That way you will have time to hit control-c just after reboot to recover access to REPL. Then you can enter
and you have control back. This has helped me a couple of times. |
Beta Was this translation helpful? Give feedback.
-
Yup, that is a good idea. Using the CNTRL-A, CNTRL-B trick seems to work if I reboot and catch it. The sleep gives you a much longer window as well. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Can't stop timer from REPL? Keyboard interrupt does nothing? I can't re-flash my ESP32, every tool I use says the ESP32 is busy. The timers continue to run as and I can't seem to stop main.py at all. Even keyboard interrupt fails to stop anything.
Beta Was this translation helpful? Give feedback.
All reactions