mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-17 13:19:52 +01:00
Initialise the reliability layer.
This commit is contained in:
@@ -69,6 +69,7 @@ class ModemImpl implements Modem, WriteHandler, SerialPortEventListener {
|
|||||||
}
|
}
|
||||||
if(!foundBaudRate)
|
if(!foundBaudRate)
|
||||||
throw new IOException("Could not find a suitable baud rate");
|
throw new IOException("Could not find a suitable baud rate");
|
||||||
|
reliabilityLayer.init();
|
||||||
port.addEventListener(this);
|
port.addEventListener(this);
|
||||||
port.purgePort(PURGE_RXCLEAR | PURGE_TXCLEAR);
|
port.purgePort(PURGE_RXCLEAR | PURGE_TXCLEAR);
|
||||||
port.writeBytes("ATZ\r\n".getBytes("US-ASCII")); // Reset
|
port.writeBytes("ATZ\r\n".getBytes("US-ASCII")); // Reset
|
||||||
|
|||||||
Reference in New Issue
Block a user