Initialise the reliability layer.

This commit is contained in:
akwizgran
2012-12-06 15:55:00 +00:00
parent e9ebec44cd
commit 706d3ea3cf

View File

@@ -69,6 +69,7 @@ class ModemImpl implements Modem, WriteHandler, SerialPortEventListener {
}
if(!foundBaudRate)
throw new IOException("Could not find a suitable baud rate");
reliabilityLayer.init();
port.addEventListener(this);
port.purgePort(PURGE_RXCLEAR | PURGE_TXCLEAR);
port.writeBytes("ATZ\r\n".getBytes("US-ASCII")); // Reset