helping Android

This commit is contained in:
rusefi 2020-07-24 12:27:38 -04:00
parent 24422233f6
commit 09a9ecf90e
1 changed files with 2 additions and 1 deletions

View File

@ -13,6 +13,7 @@ import com.rusefi.binaryprotocol.IncomingDataBuffer;
import com.rusefi.dfu.DfuLogic;
import com.rusefi.io.ByteReader;
import com.rusefi.io.serial.AbstractIoStream;
import com.rusefi.io.tcp.TcpIoStream;
import java.io.IOException;
import java.util.List;
@ -49,7 +50,7 @@ public class AndroidSerial extends AbstractIoStream {
@Override
public void setInputListener(DataListener listener) {
ByteReader reader = buffer -> usbSerialPort.read(buffer, 5000);
ByteReader.runReaderLoop("", listener, reader, Logger.CONSOLE);
ByteReader.runReaderLoop("", listener, reader, Logger.CONSOLE, TcpIoStream.DisconnectListener.VOID);
}
@Override