[gnoduino: 67/237] increased bootloader delay to approx. 3.5 s



commit 41b6bd5d3e8fe3428579d39f0013ae2c45ae9289
Author: Zach Eveland <zeveland blacklabel-development com>
Date:   Sun Aug 14 14:29:44 2011 -0400

    increased bootloader delay to approx. 3.5 s

 arduino/bootloaders/diskloader/src/USBCore.cpp |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/arduino/bootloaders/diskloader/src/USBCore.cpp b/arduino/bootloaders/diskloader/src/USBCore.cpp
index b6f8c44..fbfad0e 100644
--- a/arduino/bootloaders/diskloader/src/USBCore.cpp
+++ b/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)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]