projects
/
slipway.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98a31cc
)
THIS WORKS RELIABLY
author
adam
<adam@megacz.com>
Wed, 20 Sep 2006 08:20:26 +0000
(09:20 +0100)
committer
adam
<adam@megacz.com>
Wed, 20 Sep 2006 08:20:26 +0000
(09:20 +0100)
src/edu/berkeley/obits/device/atmel/FtdiBoard.java
patch
|
blob
|
history
diff --git
a/src/edu/berkeley/obits/device/atmel/FtdiBoard.java
b/src/edu/berkeley/obits/device/atmel/FtdiBoard.java
index
08b5e98
..
12b339a
100644
(file)
--- a/
src/edu/berkeley/obits/device/atmel/FtdiBoard.java
+++ b/
src/edu/berkeley/obits/device/atmel/FtdiBoard.java
@@
-37,7
+37,7
@@
public class FtdiBoard extends Board {
Chip d = chip;
//d.buffered(false);
- for(int i=0; i<1000; i++) {
+
d.doReset();
d.config(0,3);
d.con();
@@
-78,7
+78,7
@@
public class FtdiBoard extends Board {
try { Thread.sleep(100); } catch (Exception e) { }
pin = d.initErr();
System.out.println("bad preamble #1 => " + pin + " " + (pin ? red("BAD") : green("good")));
- }
+
d.doReset();
d.config(0,10);