Commit d154120
Fix bogus port disconnection during serial event
Fixes #9785 and probably many others
This commit strongly simplyfies the serial list code
Pluggable discovery introduced a bug since BoardPort.toString() started reporting only the name of the port, not the complete name_vid_pid needed to match liblistserial output.
Adding .toCompleteString() almost solves the bogus disconnection part alone, but resolveDeviceByVendorIdProductId() uses "0x" prefixes VID/PID, breaking it again.
In addition, all the logic used to match a board with its bootloader (to obtain a serial number on 32u4 boards) has been completely removed since it is currently useless (and unused).1 parent a0cd3ea commit d154120
File tree
3 files changed
+24
-32
lines changed- arduino-core/src
- cc/arduino/packages
- discoverers/serial
- processing/app
3 files changed
+24
-32
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
125 | 129 | | |
126 | 130 | | |
127 | 131 | | |
| |||
Lines changed: 17 additions & 30 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | 49 | | |
51 | 50 | | |
52 | 51 | | |
| |||
56 | 55 | | |
57 | 56 | | |
58 | 57 | | |
59 | | - | |
| 58 | + | |
60 | 59 | | |
61 | 60 | | |
62 | 61 | | |
| |||
69 | 68 | | |
70 | 69 | | |
71 | 70 | | |
72 | | - | |
| 71 | + | |
73 | 72 | | |
74 | 73 | | |
75 | 74 | | |
| |||
116 | 115 | | |
117 | 116 | | |
118 | 117 | | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | 118 | | |
125 | 119 | | |
126 | 120 | | |
| 121 | + | |
127 | 122 | | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
| 123 | + | |
136 | 124 | | |
137 | 125 | | |
138 | 126 | | |
139 | 127 | | |
| 128 | + | |
140 | 129 | | |
141 | 130 | | |
142 | 131 | | |
| |||
161 | 150 | | |
162 | 151 | | |
163 | 152 | | |
164 | | - | |
| 153 | + | |
| 154 | + | |
165 | 155 | | |
166 | | - | |
| 156 | + | |
167 | 157 | | |
| 158 | + | |
168 | 159 | | |
169 | 160 | | |
170 | 161 | | |
171 | 162 | | |
172 | | - | |
173 | | - | |
174 | | - | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
175 | 166 | | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
176 | 170 | | |
177 | 171 | | |
178 | 172 | | |
179 | 173 | | |
180 | | - | |
| 174 | + | |
181 | 175 | | |
182 | 176 | | |
183 | 177 | | |
184 | 178 | | |
185 | 179 | | |
186 | 180 | | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
| 181 | + | |
193 | 182 | | |
194 | 183 | | |
195 | 184 | | |
| |||
208 | 197 | | |
209 | 198 | | |
210 | 199 | | |
211 | | - | |
212 | | - | |
213 | 200 | | |
214 | 201 | | |
215 | 202 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
205 | | - | |
206 | | - | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
207 | 208 | | |
208 | 209 | | |
209 | 210 | | |
| |||
0 commit comments