1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-19 09:42:11 +03:00

Now have uploading working with the Boards menu. Improved serial port error messages.

This commit is contained in:
David A. Mellis
2007-10-06 20:26:45 +00:00
parent 1f35dce6a8
commit c78c1efe18
15 changed files with 218 additions and 139 deletions

View File

@ -526,7 +526,11 @@ public class EditorStatus extends JPanel implements ActionListener {
int rate = Integer.parseInt(rateString);
Preferences.set("serial.debug_rate", rateString);
editor.serialPort.dispose();
editor.serialPort = new Serial(true);
try {
editor.serialPort = new Serial(true);
} catch (SerialException err) {
editor.error(err);
}
}
}
}