From 1d0ecc19cf32f3fc949e00b5ed7ec941d8237e3f Mon Sep 17 00:00:00 2001 From: adam Date: Wed, 20 Sep 2006 09:52:50 +0100 Subject: [PATCH] checkpoint --- src/com/ftdi/usb/FtdiUart.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/com/ftdi/usb/FtdiUart.java b/src/com/ftdi/usb/FtdiUart.java index 9e7819c..a07004a 100644 --- a/src/com/ftdi/usb/FtdiUart.java +++ b/src/com/ftdi/usb/FtdiUart.java @@ -18,7 +18,11 @@ public class FtdiUart { } public synchronized int readPins() { - flush(); + try { + getOutputStream().flush(); + } catch (IOException e) { + throw new RuntimeException(e); + } byte[] b = new byte[1]; example.ftdi_read_pins(context, b); return b[0]; -- 1.7.10.4