mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-17 22:23:10 +03:00
USB microcontrollers will call USB.attach() after init(), before setup()
This commit is contained in:
@ -5,6 +5,10 @@ int main(void)
|
||||
{
|
||||
init();
|
||||
|
||||
#if defined(USBCON)
|
||||
USB.attach();
|
||||
#endif
|
||||
|
||||
setup();
|
||||
|
||||
for (;;)
|
||||
|
Reference in New Issue
Block a user