mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-30 16:24:09 +03:00
toggling DTR explicitly before upload (and adding setDTR to serial.java)
This commit is contained in:
@ -476,6 +476,9 @@ public class Serial implements SerialPortEventListener {
|
||||
write(what.getBytes());
|
||||
}
|
||||
|
||||
public void setDTR(boolean state) {
|
||||
port.setDTR(state);
|
||||
}
|
||||
|
||||
/**
|
||||
* If this just hangs and never completes on Windows,
|
||||
|
Reference in New Issue
Block a user