checkpoint
authoradam <adam@megacz.com>
Wed, 20 Sep 2006 08:52:50 +0000 (09:52 +0100)
committeradam <adam@megacz.com>
Wed, 20 Sep 2006 08:52:50 +0000 (09:52 +0100)
src/com/ftdi/usb/FtdiUart.java

index 9e7819c..a07004a 100644 (file)
@@ -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];