micropython/tools/mpremote/mpremote
Andrew Leech 3a97175f5f 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>
2025-07-04 15:51:47 +10:00
..
__init__.py tools/mpremote: Use hatch to build mpremote package. 2023-02-24 11:40:22 +11:00
__main__.py tools/mpremote: Allow running mpremote with python -m. 2022-03-30 15:29:26 +11:00
commands.py tools/mpremote: Add new 'fs tree' command. 2025-05-18 00:19:14 +10:00
console.py all: Fix cases of Python variable assigned but never used. 2023-05-02 16:36:05 +10:00
main.py tools/mpremote: Fix disconnect handling on Windows and Linux. 2025-07-04 15:51:47 +10:00
mip.py tools/mpremote: For mip install, use hash to skip files that exist. 2025-05-02 11:44:32 +10:00
repl.py tools/mpremote: Fix disconnect handling on Windows and Linux. 2025-07-04 15:51:47 +10:00
romfs.py tools/mpremote: Add romfs query, build and deploy commands. 2025-03-06 12:52:35 +11:00
transport_serial.py tools/mpremote: Prevent deletion of /remote files via rm -r. 2025-04-26 16:07:44 +10:00
transport.py tools/mpremote: Fix possibly-missing EOPNOTSUPP errno name. 2025-04-26 15:51:49 +10:00