mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-17 22:23:10 +03:00
Removed useless baud rates from serial monitor
This commit is contained in:
@ -302,6 +302,15 @@ public class Preferences {
|
|||||||
|
|
||||||
// other things that have to be set explicitly for the defaults
|
// other things that have to be set explicitly for the defaults
|
||||||
setColor("run.window.bgcolor", SystemColor.control);
|
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");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -121,8 +121,8 @@ public class SerialMonitor extends JFrame implements MessageConsumer {
|
|||||||
lineEndings.setMaximumSize(lineEndings.getMinimumSize());
|
lineEndings.setMaximumSize(lineEndings.getMinimumSize());
|
||||||
|
|
||||||
String[] serialRateStrings = {
|
String[] serialRateStrings = {
|
||||||
"300","1200","2400","4800","9600","14400",
|
"300","1200","2400","4800","9600",
|
||||||
"19200","28800","38400","57600","115200"
|
"19200","38400","57600","115200"
|
||||||
};
|
};
|
||||||
|
|
||||||
serialRates = new JComboBox();
|
serialRates = new JComboBox();
|
||||||
|
Reference in New Issue
Block a user