diff options
author | Andrew Leech <andrew.leech@planetinnovation.com.au> | 2021-09-27 17:42:50 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2025-07-04 15:51:47 +1000 |
commit | 3a97175f5f7023d9f8db37c21e0c04174df0f205 (patch) | |
tree | 3e7ce80a3540710a1ae289bc2bd3505b678c2f35 /py/objstringio.c | |
parent | e33a0f4682374faadc0a6ef5bb02b16bcc3f2d88 (diff) | |
download | micropython-3a97175f5f7023d9f8db37c21e0c04174df0f205.tar.gz micropython-3a97175f5f7023d9f8db37c21e0c04174df0f205.zip |
tools/mpremote: Fix disconnect handling on Windows and Linux.
Changes in this commit:
- Handle SerialException on Windows when device disconnects.
- Print clean 'device disconnected' message instead of stack trace.
- Fix terminal formatting issues on Linux after disconnect.
- Return disconnected state after console cleanup to avoid terminal issues.
This ensures proper disconnect messages on both platforms without showing
confusing error traces to users.
Signed-off-by: Andrew Leech <andrew.leech@planetinnovation.com.au>
Diffstat (limited to 'py/objstringio.c')
0 files changed, 0 insertions, 0 deletions