helping Android
This commit is contained in:
parent
24422233f6
commit
09a9ecf90e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue