diff options
author | Maxim Devaev <[email protected]> | 2022-07-15 10:27:20 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2022-07-15 10:27:20 +0300 |
commit | 95e9b7dd757d2f8d1a86cd72f3d69645314a1610 (patch) | |
tree | ee23b14d5df784bbc436b927df745c6c61e615d3 /hid/patches/arduino-main-no-usb.patch | |
parent | 48f479286170f3cf79304d9b89dd166dec5af834 (diff) |
renamed patch
Diffstat (limited to 'hid/patches/arduino-main-no-usb.patch')
-rw-r--r-- | hid/patches/arduino-main-no-usb.patch | 24 |
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; |