From deac363dfb180727e698318863f7da91e6702407 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Ho=C5=A1ek?= Date: Wed, 16 Nov 2022 22:42:43 +0100 Subject: [PATCH] WinSerialPort: Set DTR behavior explicitly Some serial terminal applications apparently change the default DTR behavior ("turn off and keep off"); this causes BOSSA to fail, e.g. on the Arduino Due, until the parameter is reset or the serial device is disconnected and reconnected. Make BOSSA set this parameter explicitly. --- src/WinSerialPort.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WinSerialPort.cpp b/src/WinSerialPort.cpp index 1edc5701..ba00de36 100644 --- a/src/WinSerialPort.cpp +++ b/src/WinSerialPort.cpp @@ -98,7 +98,7 @@ WinSerialPort::open(int baud, int data, SerialPort::Parity parity, SerialPort::S } dcbSerialParams.BaudRate = baud; - + dcbSerialParams.fDtrControl = DTR_CONTROL_DISABLE; dcbSerialParams.ByteSize = data; switch (parity)