summaryrefslogtreecommitdiff
path: root/hid/arduino/patches/arduino-main-no-usb.patch
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2023-07-31 02:17:23 +0300
committerMaxim Devaev <[email protected]>2023-07-31 02:17:23 +0300
commit1a8f98a64f9480c1062225e0fc994ceac4ba346d (patch)
tree934ac95c6c0774d6ac512860905d4d2454b0b2aa /hid/arduino/patches/arduino-main-no-usb.patch
parentcf44668af998b114fbddc8fa41b47193b606c064 (diff)
moved arduino hid to hid/arduino
Diffstat (limited to 'hid/arduino/patches/arduino-main-no-usb.patch')
-rw-r--r--hid/arduino/patches/arduino-main-no-usb.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/hid/arduino/patches/arduino-main-no-usb.patch b/hid/arduino/patches/arduino-main-no-usb.patch
new file mode 100644
index 00000000..ab10c9a8
--- /dev/null
+++ b/hid/arduino/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;