try {
connected = true;
serialActive.setText("Connected");
serialRateCombo.setEnabled(false);
serial = new Serial(port.portName, 9600, 'N', 8, 1.0f);
serial.addListener(new MessageConsumer() {
@Override
public void message(String s) {
serialConsole.append(s);
if(actions.sketch.isAutoScroll()) {
serialConsole.setCaretPosition(serialConsole.getDocument().getLength());