1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-02-26 20:54:22 +01:00

Removed useless baud rates from serial monitor

This commit is contained in:
Federico Fissore 2013-02-13 10:29:52 +01:00
parent a07fc245db
commit ec67c88b21
2 changed files with 11 additions and 2 deletions

View File

@ -302,6 +302,15 @@ public class Preferences {
// other things that have to be set explicitly for the defaults
setColor("run.window.bgcolor", SystemColor.control);
fixPreferences();
}
private static void fixPreferences() {
String baud = get("serial.debug_rate");
if ("14400".equals(baud) || "28800".equals(baud)) {
set("serial.debug_rate", "9600");
}
}

View File

@ -121,8 +121,8 @@ public class SerialMonitor extends JFrame implements MessageConsumer {
lineEndings.setMaximumSize(lineEndings.getMinimumSize());
String[] serialRateStrings = {
"300","1200","2400","4800","9600","14400",
"19200","28800","38400","57600","115200"
"300","1200","2400","4800","9600",
"19200","38400","57600","115200"
};
serialRates = new JComboBox();