-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Commit 4a550a3
use plugged modules name to create iSerial field
To solve the re-enumeration problem on Win, two different approaches where tested:
- creating a S/N based on the descriptor length (collisions still possible, less overhead)
- craft a S/N string from the pluggable modules properties (no collision, no difference between different HID submodules)
A call has been added getShortName and it MUST be implemented by any library based on PluggableUSB. No effect on PluggableHID-based libraries.1 parent ea89608 commit 4a550a3
File tree
9 files changed
+66
-12
lines changed- hardware/arduino
- avr
- cores/arduino
- libraries/HID
- sam
- cores/arduino/USB
- libraries/HID
9 files changed
+66
-12
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
26 | - | ||
26 | + | ||
27 | 27 |
| |
28 | 28 |
| |
29 | 29 |
| |
| |||
35 | 35 |
| |
36 | 36 |
| |
37 | 37 |
| |
38 | + | ||
39 | + | ||
38 | 40 |
| |
39 | 41 |
| |
40 | 42 |
| |
41 | 43 |
| |
42 | 44 |
| |
43 | - | ||
45 | + | ||
44 | 46 |
| |
45 | 47 |
| |
46 | 48 |
| |
| |||
57 | 59 |
| |
58 | 60 |
| |
59 | 61 |
| |
62 | + | ||
63 | + | ||
64 | + | ||
65 | + | ||
66 | + | ||
67 | + | ||
68 | + | ||
69 | + | ||
70 | + | ||
71 | + | ||
72 | + | ||
73 | + | ||
60 | 74 |
| |
61 | 75 |
| |
62 | 76 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
30 | 30 |
| |
31 | 31 |
| |
32 | 32 |
| |
33 | + | ||
33 | 34 |
| |
34 | 35 |
| |
35 | 36 |
| |
| |||
54 | 55 |
| |
55 | 56 |
| |
56 | 57 |
| |
58 | + | ||
59 | + | ||
57 | 60 |
| |
58 | 61 |
| |
59 | 62 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
82 | 82 |
| |
83 | 83 |
| |
84 | 84 |
| |
85 | - | ||
86 | - | ||
87 | 85 |
| |
88 | 86 |
| |
89 | 87 |
| |
| |||
458 | 456 |
| |
459 | 457 |
| |
460 | 458 |
| |
461 | - | ||
459 | + | ||
462 | 460 |
| |
463 | 461 |
| |
464 | - | ||
462 | + | ||
465 | 463 |
| |
466 | 464 |
| |
467 | 465 |
| |
| |||
522 | 520 |
| |
523 | 521 |
| |
524 | 522 |
| |
525 | - | ||
526 | - | ||
527 | - | ||
523 | + | ||
524 | + | ||
525 | + | ||
526 | + | ||
528 | 527 |
| |
529 | 528 |
| |
530 | 529 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
79 | 79 |
| |
80 | 80 |
| |
81 | 81 |
| |
82 | + | ||
83 | + | ||
84 | + | ||
85 | + | ||
86 | + | ||
87 | + | ||
82 | 88 |
| |
83 | 89 |
| |
84 | 90 |
| |
| |||
149 | 155 |
| |
150 | 156 |
| |
151 | 157 |
| |
158 | + | ||
152 | 159 |
| |
153 | 160 |
| |
154 | 161 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
35 | 35 |
| |
36 | 36 |
| |
37 | 37 |
| |
38 | + | ||
39 | + | ||
38 | 40 |
| |
39 | 41 |
| |
40 | 42 |
| |
41 | 43 |
| |
42 | 44 |
| |
43 | - | ||
45 | + | ||
44 | 46 |
| |
45 | 47 |
| |
46 | 48 |
| |
| |||
68 | 70 |
| |
69 | 71 |
| |
70 | 72 |
| |
73 | + | ||
74 | + | ||
75 | + | ||
76 | + | ||
77 | + | ||
78 | + | ||
79 | + | ||
80 | + | ||
81 | + | ||
82 | + | ||
83 | + | ||
84 | + | ||
71 | 85 |
| |
72 | 86 |
| |
73 | 87 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
30 | 30 |
| |
31 | 31 |
| |
32 | 32 |
| |
33 | + | ||
33 | 34 |
| |
34 | 35 |
| |
35 | 36 |
| |
| |||
56 | 57 |
| |
57 | 58 |
| |
58 | 59 |
| |
60 | + | ||
61 | + | ||
59 | 62 |
| |
60 | 63 |
| |
61 | 64 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
96 | 96 |
| |
97 | 97 |
| |
98 | 98 |
| |
99 | - | ||
99 | + | ||
100 | 100 |
| |
101 | 101 |
| |
102 | - | ||
102 | + | ||
103 | 103 |
| |
104 | 104 |
| |
105 | 105 |
| |
| |||
429 | 429 |
| |
430 | 430 |
| |
431 | 431 |
| |
432 | + | ||
433 | + | ||
434 | + | ||
435 | + | ||
436 | + | ||
437 | + | ||
432 | 438 |
| |
433 | 439 |
| |
434 | 440 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
44 | 44 |
| |
45 | 45 |
| |
46 | 46 |
| |
47 | + | ||
47 | 48 |
| |
48 | 49 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
77 | 77 |
| |
78 | 78 |
| |
79 | 79 |
| |
80 | + | ||
81 | + | ||
82 | + | ||
83 | + | ||
84 | + | ||
85 | + | ||
80 | 86 |
| |
81 | 87 |
| |
82 | 88 |
| |
| |||
152 | 158 |
| |
153 | 159 |
| |
154 | 160 |
| |
161 | + | ||
155 | 162 |
| |
156 | 163 |
| |
157 | 164 |
| |
|
0 commit comments