Commit fbc68190 authored by Evan Raskob's avatar Evan Raskob

fixed bug with backwards serial port array!

parent b743e0a3
......@@ -164,7 +164,7 @@ void controlEvent(ControlEvent theEvent) {
//set the serial port
serialListNumber = int(theEvent.getValue());
} else if (eventName == "BaudRate") {
int index = int(theEvent.getValue());
int index = serialRateStrings.length - int(theEvent.getValue()) - 1;
baud = Integer.parseInt(serialRateStrings[index]);
} else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment