mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 10:49:06 +01:00
Initialise the reliability layer.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user