mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-02-02 19:11:54 +08:00
renamed patch
This commit is contained in:
24
hid/patches/arduino-main-no-usb.patch
Normal file
24
hid/patches/arduino-main-no-usb.patch
Normal file
@@ -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;
|
||||
Reference in New Issue
Block a user