diff options
| author | Keith Packard <keithp@keithp.com> | 2011-01-11 21:28:07 -0800 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2011-01-11 21:28:07 -0800 |
| commit | 440d52e34364fdeeddc76a2d744cc6d1c934364f (patch) | |
| tree | fd948bd731cae315f011357bee01f5153c280783 /altosui/AltosEepromDownload.java | |
| parent | 7ad419d81c90ef6a16656970466313767fef830f (diff) | |
altosui: Add support for parsing list of flights from the 'l' command
This adds parsing support to enumerate the available flights, but does
not yet provide any UI to use it.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosEepromDownload.java')
| -rw-r--r-- | altosui/AltosEepromDownload.java | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/altosui/AltosEepromDownload.java b/altosui/AltosEepromDownload.java index 9a748710..ca31fdcf 100644 --- a/altosui/AltosEepromDownload.java +++ b/altosui/AltosEepromDownload.java @@ -161,11 +161,12 @@ public class AltosEepromDownload implements Runnable { int start_block, end_block; public void run () { - if (remote) { - serial_line.set_radio(); - serial_line.printf("p\nE 0\n"); - serial_line.flush_input(); - } + try { + new AltosEepromList(serial_line, remote); + } catch (Exception ee) { } + + if (remote) + serial_line.start_remote(); try { CaptureLog(start_block, end_block); @@ -179,7 +180,7 @@ public class AltosEepromDownload implements Runnable { "Connection Failed"); } if (remote) - serial_line.printf("~"); + serial_line.stop_remote(); monitor.done(); serial_line.flush_output(); serial_line.close(); |
