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:
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user