Commit cee5781
authored
BREAKING: USB PID will vary depending on devices (earlephilhower#3091)
The USB PID was already being changed depending on the devices installed
in the app. This was needed because Windows has issues with the same
VID:PID exporting different HID devices (i.e. it would not recognize
changed ones properly).
Unfortunately the change was to set a bit to 1 in the PID, but if the
bit was already 1 then no change would occur.
Now, actually XOR the bitmap of device exports to ensure the VID:PID
of a sketch with only Serial will differ from one with Serial and
Keyboard, for example.1 parent fa19d11 commit cee5781
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| |||
0 commit comments