1
0
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:
Zach Eveland 2011-08-18 19:59:35 -04:00
parent 5b989d13b3
commit dd539bacf8

View File

@ -5,6 +5,10 @@ int main(void)
{
init();
#if defined(USBCON)
USB.attach();
#endif
setup();
for (;;)