Skip to content

Commit ec67c88

Browse files
author
Federico Fissore
committed
Removed useless baud rates from serial monitor
1 parent a07fc24 commit ec67c88

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

app/src/processing/app/Preferences.java

+9
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,15 @@ static protected void init(String commandLinePrefs) {
302302

303303
// other things that have to be set explicitly for the defaults
304304
setColor("run.window.bgcolor", SystemColor.control);
305+
306+
fixPreferences();
307+
}
308+
309+
private static void fixPreferences() {
310+
String baud = get("serial.debug_rate");
311+
if ("14400".equals(baud) || "28800".equals(baud)) {
312+
set("serial.debug_rate", "9600");
313+
}
305314
}
306315

307316

app/src/processing/app/SerialMonitor.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ public void actionPerformed(ActionEvent event) {
121121
lineEndings.setMaximumSize(lineEndings.getMinimumSize());
122122

123123
String[] serialRateStrings = {
124-
"300","1200","2400","4800","9600","14400",
125-
"19200","28800","38400","57600","115200"
124+
"300","1200","2400","4800","9600",
125+
"19200","38400","57600","115200"
126126
};
127127

128128
serialRates = new JComboBox();

0 commit comments

Comments
 (0)