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:
parent
ddd3418a4f
commit
84c0d2cff8
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue