mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-17 22:23:10 +03:00
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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user