-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit 8e823d2
committed
Allow disabling CDC with -DCDC_DISABLED
Sometimes Arduino-based USB devices don't work because some hardware
(like KVM switches) gets confused by the CDC sub-devices.
This change makes it relatively easy to disable CDC at compiletime.
Disabling it of course means that the serial console won't work anymore,
so you need to use the reset button when flashing.
CDC_DISABLED is also used in ArduinoCore-samd for the same purpose.
based on
https://github.com/gdsports/usb-metamorph/tree/master/USBSerPassThruLine
See also NicoHood/HID#225 and
arduino/Arduino#6387 and
https://forum.arduino.cc/index.php?topic=545288.msg3717028#msg3717028 1 parent 60f0d0b commit 8e823d2
3 files changed
+42
-1
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
25 | + | ||
26 | + | ||
27 | + | ||
28 | + | ||
29 | + | ||
30 | + | ||
31 | + | ||
25 | 32 |
| |
26 | 33 |
| |
27 | 34 |
| |
| |||
299 | 306 |
| |
300 | 307 |
| |
301 | 308 |
| |
309 | + | ||
302 | 310 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
69 | 69 |
| |
70 | 70 |
| |
71 | 71 |
| |
72 | + | ||
73 | + | ||
72 | 74 |
| |
73 | 75 |
| |
76 | + | ||
77 | + | ||
78 | + | ||
79 | + | ||
80 | + | ||
81 | + | ||
82 | + | ||
83 | + | ||
74 | 84 |
| |
75 | 85 |
| |
76 | 86 |
| |
| |||
328 | 338 |
| |
329 | 339 |
| |
330 | 340 |
| |
331 | - | ||
341 | + | ||
342 | + | ||
332 | 343 |
| |
333 | 344 |
| |
334 | 345 |
| |
346 | + | ||
335 | 347 |
| |
336 | 348 |
| |
337 | 349 |
| |
| |||
373 | 385 |
| |
374 | 386 |
| |
375 | 387 |
| |
388 | + | ||
376 | 389 |
| |
377 | 390 |
| |
378 | 391 |
| |
379 | 392 |
| |
393 | + | ||
380 | 394 |
| |
381 | 395 |
| |
382 | 396 |
| |
| |||
466 | 480 |
| |
467 | 481 |
| |
468 | 482 |
| |
483 | + | ||
469 | 484 |
| |
485 | + | ||
470 | 486 |
| |
471 | 487 |
| |
472 | 488 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
29 | + | ||
30 | + | ||
31 | + | ||
32 | + | ||
33 | + | ||
34 | + | ||
35 | + | ||
36 | + | ||
37 | + | ||
38 | + | ||
39 | + | ||
40 | + | ||
41 | + | ||
29 | 42 |
| |
30 | 43 |
| |
44 | + | ||
45 | + | ||
46 | + | ||
47 | + | ||
31 | 48 |
| |
32 | 49 |
| |
33 | 50 |
| |
|
0 commit comments