Closed mbuesch closed 4 years ago
Looks good, thank you for your contribution. Sorry for the delay.
Thanks for merging.
For completeness I want to add this information: https://github.com/micropython/micropython/pull/5469
In that thread there is a more detailed analysis of why this happens. It turns out that this behaviour is probably caused by a bug in the ESP32 Micropython. However I think it's still fine to keep this as a workaround. It doesn't really hurt non-buggy versions and it definitely helps to connect to the buggy version.
This adds a small delay after the intitial CTRL-C to let the program terminate gracefully. This avoids timeouts in enter-repl.