mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-18 12:54:25 +01:00
USB microcontrollers will call USB.attach() after init(), before setup()
This commit is contained in:
parent
5b989d13b3
commit
dd539bacf8
@ -5,6 +5,10 @@ int main(void)
|
||||
{
|
||||
init();
|
||||
|
||||
#if defined(USBCON)
|
||||
USB.attach();
|
||||
#endif
|
||||
|
||||
setup();
|
||||
|
||||
for (;;)
|
||||
|
Loading…
x
Reference in New Issue
Block a user