projects
/
slipway.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d56af9c
)
checkpoint
author
adam
<adam@megacz.com>
Mon, 11 Sep 2006 14:25:08 +0000
(15:25 +0100)
committer
adam
<adam@megacz.com>
Mon, 11 Sep 2006 14:25:08 +0000
(15:25 +0100)
src/edu/berkeley/obits/device/atmel/FtdiChip.java
patch
|
blob
|
history
diff --git
a/src/edu/berkeley/obits/device/atmel/FtdiChip.java
b/src/edu/berkeley/obits/device/atmel/FtdiChip.java
index
86e88e5
..
539db2a
100644
(file)
--- 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); }
}