projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
[fw/altos]
/
altosui
/
AltosEepromChunk.java
diff --git
a/altosui/AltosEepromChunk.java
b/altosui/AltosEepromChunk.java
index fb632a3f50fd6f8b9b8964ae3cefb33221d47eef..59767c2aa60d1bad4eb355d71bdfda58de8d330f 100644
(file)
--- a/
altosui/AltosEepromChunk.java
+++ b/
altosui/AltosEepromChunk.java
@@
-59,14
+59,15
@@
public class AltosEepromChunk {
return true;
}
return true;
}
- public AltosEepromChunk(AltosSerial serial_line, int block)
+ public AltosEepromChunk(AltosSerial serial_line, int block
, boolean flush
)
throws TimeoutException, InterruptedException {
int offset;
data = new int[chunk_size];
address = block * chunk_size;
throws TimeoutException, InterruptedException {
int offset;
data = new int[chunk_size];
address = block * chunk_size;
- serial_line.flush_input();
+ if (flush)
+ serial_line.flush_input();
serial_line.printf("e %x\n", block);
for (offset = 0; offset < chunk_size; offset += per_line) {
serial_line.printf("e %x\n", block);
for (offset = 0; offset < chunk_size; offset += per_line) {