Skip to content

Commit b005b36

Browse files
committed
Fixes Freeze for ESP8266 #394
1 parent ab48abd commit b005b36

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

it.baeyens.arduino.common/src/it/baeyens/arduino/arduino/Serial.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public void connect(int maxTries) {
162162
try {
163163
this.port = new SerialPort(this.PortName);
164164
this.port.openPort();
165-
this.port.setParams(this.rate, this.databits, this.stopbits, this.parity);
165+
this.port.setParams(this.rate, this.databits, this.stopbits, this.parity, this.dtr, this.dtr);
166166

167167
int eventMask = SerialPort.MASK_RXCHAR | SerialPort.MASK_BREAK;
168168
this.port.addEventListener(this, eventMask);
@@ -244,18 +244,14 @@ public void registerService() {
244244
}
245245

246246
public void reset() {
247-
if(this.dtr){
248-
setDTR(false);
249-
}
247+
setDTR(false);
250248
setRTS(false);
251249

252250
try {
253251
Thread.sleep(100);
254252
} catch (InterruptedException e) {// JABA is not going to add code
255253
}
256-
if(this.dtr){
257-
setDTR(true);
258-
}
254+
setDTR(true);
259255
setRTS(true);
260256

261257
}

it.baeyens.arduino.monitor/src/it/baeyens/arduino/monitor/views/messages.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
OpenSerialDialogBox_Select_the_baut_rate=Select the baudrate:
22
OpenSerialDialogBox_Serial_port_to_connect_to=Serial port to connect to:
3-
OpenSerialDialogBox_Dtr=Pull DTR to GND during reset:
3+
OpenSerialDialogBox_Dtr=Set DTR and RST
44
ScopeListener_buffer_overflow=buffer overflow in ScopeListener
55
ScopeView_channel=Channel
66
ScopeView_connected_to=connected to:

0 commit comments

Comments
 (0)