From: adam Date: Wed, 20 Sep 2006 08:52:50 +0000 (+0100) Subject: checkpoint X-Git-Tag: mpar_demo_release~71 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=1d0ecc19cf32f3fc949e00b5ed7ec941d8237e3f;p=slipway.git checkpoint --- 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];