diff options
author | Devaev Maxim <[email protected]> | 2020-11-12 21:03:28 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-11-12 21:03:28 +0300 |
commit | 87cc8cf7b0e00f7f0a9badf551067aafad6da4ce (patch) | |
tree | cdd802d124236ded6969dc5d80c764deec357e02 /hid/patches | |
parent | 79ef26e2f441f6c742a5da78b08ea2d5a4cc6e18 (diff) | |
parent | 0984f0cb36c5881669010c62e986cc8bc7fe019a (diff) |
Merge branch 'spi'
Diffstat (limited to 'hid/patches')
-rw-r--r-- | hid/patches/serial.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/hid/patches/serial.patch b/hid/patches/serial.patch new file mode 100644 index 00000000..16ba3811 --- /dev/null +++ b/hid/patches/serial.patch @@ -0,0 +1,24 @@ +https://github.com/arduino/Arduino/issues/6387 +--- a/cores/arduino/USBCore.cpp 2019-09-20 15:48:38.000000000 +0300 ++++ b/cores/arduino/USBCore.cpp 2020-11-11 19:56:49.233690476 +0300 +@@ -375,8 +375,10 @@ + { + u8 i = setup.wIndex; + ++#ifndef NO_SERIAL + if (CDC_ACM_INTERFACE == i) + return CDC_Setup(setup); ++#endif + + #ifdef PLUGGABLE_USB_ENABLED + return PluggableUSB().setup(setup); +@@ -466,7 +468,9 @@ + { + u8 interfaces = 0; + ++#ifndef NO_SERIAL + CDC_GetInterface(&interfaces); ++#endif + + #ifdef PLUGGABLE_USB_ENABLED + PluggableUSB().getInterface(&interfaces); |