Skip to content

Commit 138ddc0

Browse files
author
jantje
committed
#483 added 2 serial speeds
1 parent 540d775 commit 138ddc0

File tree

1 file changed

+9
-7
lines changed
  • it.baeyens.arduino.common/src/it/baeyens/arduino/common

1 file changed

+9
-7
lines changed

it.baeyens.arduino.common/src/it/baeyens/arduino/common/Common.java

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -257,29 +257,31 @@ public static String[] listComPorts() {
257257
return outgoing;
258258
}
259259

260+
@SuppressWarnings("nls")
260261
public static String[] listBaudRates() {
261-
String outgoing[] = { "921600", "460800", "230400", "115200", "57600", "38400", "31250", "28800", "19200", //$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$//$NON-NLS-4$//$NON-NLS-5$//$NON-NLS-6$//$NON-NLS-7$ //$NON-NLS-8$ //$NON-NLS-9$
262-
"14400", "9600", "4800", "2400", //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
263-
"1200", "300" }; //$NON-NLS-1$ //$NON-NLS-2$
262+
String outgoing[] = { "230400", "250000", "921600", "460800", "230400", "115200", "57600", "38400", "31250",
263+
"28800", "19200", "14400", "9600", "4800", "2400", "1200", "300" };
264264
return outgoing;
265265
}
266266

267+
@SuppressWarnings("nls")
267268
public static String[] listLineEndings() {
268-
String outgoing[] = { "none", "CR", "NL", "CR/NL" }; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
269+
String outgoing[] = { "none", "CR", "NL", "CR/NL" };
269270
return outgoing;
270271
}
271272

273+
@SuppressWarnings("nls")
272274
public static String getLineEnding(int selectionIndex) {
273275
switch (selectionIndex) {
274276
default:
275277
case 0:
276278
return EMPTY_STRING;
277279
case 1:
278-
return "\r"; //$NON-NLS-1$
280+
return "\r";
279281
case 2:
280-
return "\n"; //$NON-NLS-1$
282+
return "\n";
281283
case 3:
282-
return "\r\n"; //$NON-NLS-1$
284+
return "\r\n";
283285
}
284286
}
285287

0 commit comments

Comments
 (0)