One-KVM/hid/patches/arduino-no-main.patch
tomaszduda23 48f4792861
commented kvmd/kvmd#80 (#102)
Co-authored-by: Maxim Devaev <mdevaev@gmail.com>
2022-07-15 10:22:26 +03:00

25 lines
471 B
Diff

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;