summaryrefslogtreecommitdiff
path: root/hid/patches/arduino-main-no-usb.patch
blob: ab10c9a896771d78be47b29f7051f6da371f1d68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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;