mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-19 09:42:11 +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();
|
init();
|
||||||
|
|
||||||
|
#if defined(USBCON)
|
||||||
|
USB.attach();
|
||||||
|
#endif
|
||||||
|
|
||||||
setup();
|
setup();
|
||||||
|
|
||||||
for (;;)
|
for (;;)
|
||||||
|
Reference in New Issue
Block a user