Skip to content

Commit 13a269d

Browse files
committed
increased bootloader delay to approx. 3.5 s
1 parent 213091f commit 13a269d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

hardware/arduino/bootloaders/diskloader/src/USBCore.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,10 @@ int USBGetChar()
502502
if (!ReadWriteAllowed())
503503
ReleaseRX();
504504
return c;
505+
} else {
506+
u8 temp = 0;
507+
for (temp=100; temp; temp--)
508+
asm volatile("nop\n\t" "nop\n\t" "nop\n\t" "nop\n\t"::);
505509
}
506510

507511
if (!--_timeout)

0 commit comments

Comments
 (0)