-
-
Notifications
You must be signed in to change notification settings - Fork 437
Commit 347bfeb
Disable DTR clearing on 1200-bps touch (only on Windows) (#2234)
The reason why it was originally introduced:
arduino/Arduino@a6909bd
Why we are removing it now?
* Windows does preserve the state of the RTS/DTR bits on successive
opening of the serial port.
* The serial library used in the Arduino IDE 1.8.x has a bug when trying
to set DTR=false, on successive opening of the port the DTR line is
set back high by the USB serial driver. This works differently from
the serial library we use in the Arduino CLI, that sets DTR=false for
good and this change is preserved on the successive opening of the
port.
* Having the serial port left in a state with DTR=false may cause
problems to tools uploading later.
It may probably completely removed, but for now, to reduce the testing
surface, it will be disabled only for Windows.1 parent ca60d4b commit 347bfeb
1 file changed
+10
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | + | ||
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
40 | - | ||
41 | - | ||
42 | - | ||
43 | - | ||
41 | + | ||
42 | + | ||
43 | + | ||
44 | + | ||
45 | + | ||
46 | + | ||
47 | + | ||
48 | + | ||
49 | + | ||
44 | 50 | | |
45 | 51 | | |
46 | 52 | | |
| |||
0 commit comments