summaryrefslogtreecommitdiff
path: root/hid/patches/arduino-main-no-usb.patch
diff options
context:
space:
mode:
Diffstat (limited to 'hid/patches/arduino-main-no-usb.patch')
-rw-r--r--hid/patches/arduino-main-no-usb.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/hid/patches/arduino-main-no-usb.patch b/hid/patches/arduino-main-no-usb.patch
new file mode 100644
index 00000000..ab10c9a8
--- /dev/null
+++ b/hid/patches/arduino-main-no-usb.patch
@@ -0,0 +1,24 @@
+diff --git a/cores/arduino/main.cpp b/cores/arduino/main.cpp
+index 434cd40..7aba76f 100644
+--- a/cores/arduino/main.cpp
++++ b/cores/arduino/main.cpp
+@@ -36,15 +36,15 @@ int main(void)
+
+ initVariant();
+
+-#if defined(USBCON)
+- USBDevice.attach();
+-#endif
++// #if defined(USBCON)
++// USBDevice.attach();
++// #endif
+
+ setup();
+
+ for (;;) {
+ loop();
+- if (serialEventRun) serialEventRun();
++ // if (serialEventRun) serialEventRun();
+ }
+
+ return 0;