diff options
author | Zach Eveland <zeveland@blacklabel-development.com> | 2011-08-16 13:43:55 -0400 |
---|---|---|
committer | Zach Eveland <zeveland@blacklabel-development.com> | 2011-08-16 13:43:55 -0400 |
commit | 84c0d2cff8bc92caa2e72b050781de122376fe72 (patch) | |
tree | 30a8d0a020e8a801efd06b9a00806ef927097cd7 /cores | |
parent | ddd3418a4faabdfb82bef69ec62e2560125c919b (diff) |
Temporary fix for auto-reset from IDE. Will reset chip when DTR is asserted, no matter what CDC baud rate is selected.
Diffstat (limited to 'cores')
-rw-r--r-- | cores/arduino/CDC.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cores/arduino/CDC.cpp b/cores/arduino/CDC.cpp index 05d0c18..b0e5e89 100644 --- a/cores/arduino/CDC.cpp +++ b/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; } |