File tree 3 files changed +6
-3
lines changed
hardware/arduino/avr/cores/arduino
3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ class USBDevice_
67
67
bool wakeupHost (); // returns false, when wakeup cannot be processed
68
68
};
69
69
extern USBDevice_ USBDevice;
70
+ void setupUSB ();
70
71
71
72
// ================================================================================
72
73
// ================================================================================
Original file line number Diff line number Diff line change @@ -828,4 +828,8 @@ bool USBDevice_::wakeupHost()
828
828
return false ;
829
829
}
830
830
831
+ void setupUSB () {
832
+ USBDevice.attach ();
833
+ }
834
+
831
835
#endif /* if defined(USBCON) */
Original file line number Diff line number Diff line change @@ -36,9 +36,7 @@ int main(void)
36
36
37
37
initVariant ();
38
38
39
- #if defined(USBCON)
40
- USBDevice.attach ();
41
- #endif
39
+ setupUSB ();
42
40
43
41
setup ();
44
42
You can’t perform that action at this time.
0 commit comments