summaryrefslogtreecommitdiff
path: root/altosui/AltosEepromChunk.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-04-19 15:29:39 -0700
committerKeith Packard <keithp@keithp.com>2011-04-19 15:29:39 -0700
commitd41edb3384b6336f3482e61b0c9f9400a8b4f519 (patch)
tree9741801892421f6bff7106cb0c949af4b72555dd /altosui/AltosEepromChunk.java
parent44fb71ca3e5bccd5f601fc5a2d5da7292050b1d6 (diff)
altosui: Make flight data download work through TeleBT
This required flushing input before reading data blocks and adjusting some delays. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosEepromChunk.java')
-rw-r--r--altosui/AltosEepromChunk.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/altosui/AltosEepromChunk.java b/altosui/AltosEepromChunk.java
index 8eec407d..1e42077f 100644
--- a/altosui/AltosEepromChunk.java
+++ b/altosui/AltosEepromChunk.java
@@ -59,6 +59,7 @@ public class AltosEepromChunk {
data = new int[chunk_size];
address = block * chunk_size;
+ serial_line.flush_input();
serial_line.printf("e %x\n", block);
for (offset = 0; offset < chunk_size; offset += per_line) {