[gnoduino: 71/237] Temporary fix for auto-reset from IDE. Will reset chip when DTR is asserted, no matter what CDC bau



commit 6e6e0202d2a510497a24cb20349fbb33a5a89693
Author: Zach Eveland <zeveland blacklabel-development com>
Date:   Tue Aug 16 13:43:55 2011 -0400

    Temporary fix for auto-reset from IDE.  Will reset chip when DTR is asserted, no matter what CDC baud rate is selected.

 arduino/cores/arduino/CDC.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/arduino/cores/arduino/CDC.cpp b/arduino/cores/arduino/CDC.cpp
index 05d0c18..b0e5e89 100644
--- a/arduino/cores/arduino/CDC.cpp
+++ b/arduino/cores/arduino/CDC.cpp
@@ -100,7 +100,8 @@ bool WEAK CDC_Setup(Setup& setup)
 		if (CDC_SET_CONTROL_LINE_STATE == r)
 		{
 			_usbLineInfo.lineState = setup.wValueL;
-			if (_usbLineInfo.dwDTERate == 115200 && _usbLineInfo.lineState == 0)	// Emulate DTR reset hack
+//			if (_usbLineInfo.dwDTERate == 115200 && _usbLineInfo.lineState == 0)	// Emulate DTR reset hack
+			if (_usbLineInfo.lineState == 0)
 				Reboot();
 			return true;
 		}



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