From 1a8f98a64f9480c1062225e0fc994ceac4ba346d Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Mon, 31 Jul 2023 02:17:23 +0300 Subject: moved arduino hid to hid/arduino --- hid/arduino/patches/arduino-main-no-usb.patch | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 hid/arduino/patches/arduino-main-no-usb.patch (limited to 'hid/arduino/patches/arduino-main-no-usb.patch') 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; -- cgit v1.2.3