diff --git a/app/src/processing/app/AbstractMonitor.java b/app/src/processing/app/AbstractMonitor.java index 1b07460b9..77681994a 100644 --- a/app/src/processing/app/AbstractMonitor.java +++ b/app/src/processing/app/AbstractMonitor.java @@ -40,6 +40,8 @@ public abstract class AbstractMonitor extends JFrame implements ActionListener { private Timer updateTimer; private BoardPort boardPort; + + protected String[] serialRateStrings = {"300", "1200", "2400", "4800", "9600", "19200", "38400", "57600", "74880", "115200", "230400", "250000"}; public AbstractMonitor(BoardPort boardPort) { super(boardPort.getLabel()); diff --git a/app/src/processing/app/AbstractTextMonitor.java b/app/src/processing/app/AbstractTextMonitor.java index 09aba8c5b..5f720d702 100644 --- a/app/src/processing/app/AbstractTextMonitor.java +++ b/app/src/processing/app/AbstractTextMonitor.java @@ -109,11 +109,6 @@ public abstract class AbstractTextMonitor extends AbstractMonitor { } lineEndings.setMaximumSize(lineEndings.getMinimumSize()); - String[] serialRateStrings = { - "300", "1200", "2400", "4800", "9600", - "19200", "38400", "57600", "115200", "230400", "250000" - }; - serialRates = new JComboBox(); for (String rate : serialRateStrings) { serialRates.addItem(rate + " " + _("baud")); diff --git a/app/src/processing/app/SerialPlotter.java b/app/src/processing/app/SerialPlotter.java index 70de04579..c6eb395ab 100644 --- a/app/src/processing/app/SerialPlotter.java +++ b/app/src/processing/app/SerialPlotter.java @@ -163,11 +163,6 @@ public class SerialPlotter extends AbstractMonitor { JPanel pane = new JPanel(); pane.setLayout(new BoxLayout(pane, BoxLayout.X_AXIS)); pane.setBorder(new EmptyBorder(4, 4, 4, 4)); - - String[] serialRateStrings = { - "300","1200","2400","4800","9600","14400", - "19200","28800","38400","57600","115200" - }; serialRates = new JComboBox(); for (int i = 0; i < serialRateStrings.length; i++)