mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-26 20:54:22 +01:00
Added accidentally removed serial baud rates back in
This commit is contained in:
parent
16c852ada5
commit
a6184cb03d
@ -41,6 +41,8 @@ public abstract class AbstractMonitor extends JFrame implements ActionListener {
|
|||||||
|
|
||||||
private BoardPort boardPort;
|
private BoardPort boardPort;
|
||||||
|
|
||||||
|
protected String[] serialRateStrings = {"300", "1200", "2400", "4800", "9600", "19200", "38400", "57600", "74880", "115200", "230400", "250000"};
|
||||||
|
|
||||||
public AbstractMonitor(BoardPort boardPort) {
|
public AbstractMonitor(BoardPort boardPort) {
|
||||||
super(boardPort.getLabel());
|
super(boardPort.getLabel());
|
||||||
this.boardPort = boardPort;
|
this.boardPort = boardPort;
|
||||||
|
@ -109,11 +109,6 @@ public abstract class AbstractTextMonitor extends AbstractMonitor {
|
|||||||
}
|
}
|
||||||
lineEndings.setMaximumSize(lineEndings.getMinimumSize());
|
lineEndings.setMaximumSize(lineEndings.getMinimumSize());
|
||||||
|
|
||||||
String[] serialRateStrings = {
|
|
||||||
"300", "1200", "2400", "4800", "9600",
|
|
||||||
"19200", "38400", "57600", "115200", "230400", "250000"
|
|
||||||
};
|
|
||||||
|
|
||||||
serialRates = new JComboBox();
|
serialRates = new JComboBox();
|
||||||
for (String rate : serialRateStrings) {
|
for (String rate : serialRateStrings) {
|
||||||
serialRates.addItem(rate + " " + _("baud"));
|
serialRates.addItem(rate + " " + _("baud"));
|
||||||
|
@ -164,11 +164,6 @@ public class SerialPlotter extends AbstractMonitor {
|
|||||||
pane.setLayout(new BoxLayout(pane, BoxLayout.X_AXIS));
|
pane.setLayout(new BoxLayout(pane, BoxLayout.X_AXIS));
|
||||||
pane.setBorder(new EmptyBorder(4, 4, 4, 4));
|
pane.setBorder(new EmptyBorder(4, 4, 4, 4));
|
||||||
|
|
||||||
String[] serialRateStrings = {
|
|
||||||
"300","1200","2400","4800","9600","14400",
|
|
||||||
"19200","28800","38400","57600","115200"
|
|
||||||
};
|
|
||||||
|
|
||||||
serialRates = new JComboBox();
|
serialRates = new JComboBox();
|
||||||
for (int i = 0; i < serialRateStrings.length; i++)
|
for (int i = 0; i < serialRateStrings.length; i++)
|
||||||
serialRates.addItem(serialRateStrings[i] + " " + _("baud"));
|
serialRates.addItem(serialRateStrings[i] + " " + _("baud"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user