Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork8.2k
Commitad0f34e
committed
mpremote: Fix disconnect handling on Windows and Linux.
- 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 issuesThis ensures proper disconnect messages on both platforms withoutshowing confusing error traces to users.Signed-off-by: Andrew Leech <andrew.leech@planetinnovation.com.au>1 parent45e4deb commitad0f34e
3 files changed
+44
-7
lines changedLines changed: 13 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
96 | 96 |
| |
97 | 97 |
| |
98 | 98 |
| |
99 |
| - | |
100 |
| - | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
101 | 112 |
| |
102 | 113 |
| |
103 | 114 |
| |
|
Lines changed: 5 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
574 | 574 |
| |
575 | 575 |
| |
576 | 576 |
| |
577 |
| - | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
578 | 582 |
| |
579 | 583 |
| |
580 | 584 |
| |
|
Lines changed: 26 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
| 5 | + | |
| 6 | + | |
5 | 7 |
| |
6 | 8 |
| |
7 | 9 |
| |
8 | 10 |
| |
| 11 | + | |
9 | 12 |
| |
10 |
| - | |
11 |
| - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
12 | 22 |
| |
13 | 23 |
| |
14 | 24 |
| |
| |||
35 | 45 |
| |
36 | 46 |
| |
37 | 47 |
| |
38 |
| - | |
| 48 | + | |
39 | 49 |
| |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
40 | 57 |
| |
41 | 58 |
| |
42 | 59 |
| |
| |||
53 | 70 |
| |
54 | 71 |
| |
55 | 72 |
| |
| 73 | + | |
| 74 | + | |
56 | 75 |
| |
57 | 76 |
| |
58 | 77 |
| |
| |||
85 | 104 |
| |
86 | 105 |
| |
87 | 106 |
| |
| 107 | + | |
88 | 108 |
| |
89 |
| - | |
| 109 | + | |
90 | 110 |
| |
91 | 111 |
| |
92 | 112 |
| |
| |||
98 | 118 |
| |
99 | 119 |
| |
100 | 120 |
| |
| 121 | + | |
| 122 | + |
0 commit comments
Comments
(0)