From: adam Date: Mon, 11 Sep 2006 14:25:08 +0000 (+0100) Subject: checkpoint X-Git-Tag: mpar_demo_release~89 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=1b94f71629812e5c8932f49fc8d73d92b3c280cf;p=slipway.git checkpoint --- diff --git a/src/edu/berkeley/obits/device/atmel/FtdiChip.java b/src/edu/berkeley/obits/device/atmel/FtdiChip.java index 86e88e5..539db2a 100644 --- a/src/edu/berkeley/obits/device/atmel/FtdiChip.java +++ b/src/edu/berkeley/obits/device/atmel/FtdiChip.java @@ -16,6 +16,7 @@ public class FtdiChip { example.ftdi_usb_reset(context); example.ftdi_set_baudrate(context, 750 * 1000); example.ftdi_set_line_property(context, 8, 0, 0); + purge(); } public synchronized int readPins() { @@ -62,7 +63,6 @@ public class FtdiChip { dbits = val ? (dbits | (1 << bit)) : (dbits & (~(1 << bit))); try { out.write((byte)dbits); - if (!buffered) out.flush(); } catch (IOException e) { throw new RuntimeException(e); } }