#14 Serial port now choosable

This commit is contained in:
Sandy Noble 2017-04-20 23:30:31 +01:00
parent 7da0e7e378
commit d74881f2de

View File

@ -38,8 +38,7 @@ ControlFrameSimple addSerialPortControlFrame(String theName, int theWidth, int t
sl.addItem("No serial connection", -1);
String[] ports = {"a", "b", "c", "d", "e", "f", "g", "h"};
//Serial.list();
String[] ports = Serial.list();
for (int i = 0; i < ports.length; i++) {
println("Adding " + ports[i]);
@ -61,8 +60,8 @@ ControlFrameSimple addSerialPortControlFrame(String theName, int theWidth, int t
void dropdown_serialPort(int newSerialPort)
{
println("In dropdown_serialPort");
println("In dropdown_serialPort, newSerialPort: " + newSerialPort);
newSerialPort -= 1;
if (newSerialPort == -2)