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

This commit is contained in:
Zach Eveland 2011-08-16 13:43:55 -04:00
parent ddd3418a4f
commit 84c0d2cff8
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}