boolean found = false;
try {
Device device = new Device();
Log.info("connecting " + portname + " with " + baudrate + " baud, flowControl " + flowControl);
device.connect(portname, baudrate, flowControl);
if (sysstartWaitSec > 0) {
Log.info("waiting " + sysstartWaitSec + " sec for SYSSTART");
device.waitForSysstart(sysstartWaitSec * 1000);
}
if (device.checkForTC65()) {