From 13a269df2e631999da1134feb9f3d7470f710594 Mon Sep 17 00:00:00 2001 From: Zach Eveland Date: Sun, 14 Aug 2011 14:29:44 -0400 Subject: [PATCH] increased bootloader delay to approx. 3.5 s --- hardware/arduino/bootloaders/diskloader/src/USBCore.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hardware/arduino/bootloaders/diskloader/src/USBCore.cpp b/hardware/arduino/bootloaders/diskloader/src/USBCore.cpp index b6f8c44dc..fbfad0e58 100644 --- a/hardware/arduino/bootloaders/diskloader/src/USBCore.cpp +++ b/hardware/arduino/bootloaders/diskloader/src/USBCore.cpp @@ -502,6 +502,10 @@ int USBGetChar() if (!ReadWriteAllowed()) ReleaseRX(); return c; + } else { + u8 temp = 0; + for (temp=100; temp; temp--) + asm volatile("nop\n\t" "nop\n\t" "nop\n\t" "nop\n\t"::); } if (!--_timeout)