mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-21 15:54:39 +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();
|
init();
|
||||||
|
|
||||||
|
#if defined(USBCON)
|
||||||
|
USB.attach();
|
||||||
|
#endif
|
||||||
|
|
||||||
setup();
|
setup();
|
||||||
|
|
||||||
for (;;)
|
for (;;)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user