Increased connection timeout to 2 minutes, more logging.

This commit is contained in:
akwizgran
2012-12-06 16:05:57 +00:00
parent 058323c6c2
commit d3062a992d
2 changed files with 3 additions and 2 deletions

View File

@@ -27,7 +27,7 @@ class ModemImpl implements Modem, WriteHandler, SerialPortEventListener {
256000, 128000, 115200, 57600, 38400, 19200, 14400, 9600, 4800, 1200
};
private static final int OK_TIMEOUT = 5 * 1000; // Milliseconds
private static final int CONNECT_TIMEOUT = 60 * 1000; // Milliseconds
private static final int CONNECT_TIMEOUT = 2 * 60 * 1000; // Milliseconds
private final Executor executor;
private final Callback callback;

View File

@@ -76,7 +76,8 @@ class Receiver implements ReadHandler {
sender.handleAck(b);
break;
default:
if(LOG.isLoggable(INFO)) LOG.info("Ignoring unknown frame type");
if(LOG.isLoggable(INFO))
LOG.info("Ignoring unknown frame type: " + b[0]);
return;
}
}