serial_win: GDB needs to handle DTR.

This commit is contained in:
Uwe Bonnes 2020-08-01 13:34:42 +02:00 committed by UweBonnes
parent 71e9d78210
commit 11217f8a45
1 changed files with 1 additions and 0 deletions

View File

@ -59,6 +59,7 @@ int serial_open(BMP_CL_OPTIONS_t *cl_opts, char * serial)
return -1;
}
dcbSerialParams.ByteSize = 8;
dcbSerialParams.fDtrControl = DTR_CONTROL_ENABLE;
if (!SetCommState(hComm, &dcbSerialParams)) {
DEBUG_WARN("SetCommState failed %ld\n", GetLastError());
return -1;