diff options
author | Keith Packard <keithp@keithp.com> | 2013-11-12 14:06:20 +0900 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-11-12 14:06:20 +0900 |
commit | 6aa99c160f0695eb25ccc0598e4c36224c89dab4 (patch) | |
tree | d93e061141a58f47925bbfc7f5f579348e9f657e /altosui/AltosEepromDownload.java | |
parent | 74d73a2cd0b6a228eb396552e1d16685669349c0 (diff) |
altoslib: Start moving eeprom download logic to altoslib
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosEepromDownload.java')
-rw-r--r-- | altosui/AltosEepromDownload.java | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/altosui/AltosEepromDownload.java b/altosui/AltosEepromDownload.java index 7ccf26a5..27bde799 100644 --- a/altosui/AltosEepromDownload.java +++ b/altosui/AltosEepromDownload.java @@ -72,7 +72,7 @@ public class AltosEepromDownload implements Runnable { eeprom_file = new FileWriter(eeprom_name); if (eeprom_file != null) { - monitor.set_file(eeprom_name.getName()); + monitor.set_filename(eeprom_name.getName()); FlushPending(); eeprom_pending = null; } @@ -298,12 +298,9 @@ public class AltosEepromDownload implements Runnable { flights = given_flights; success = false; - monitor = new AltosEepromMonitor(frame, Altos.ao_flight_boost, Altos.ao_flight_landed); - monitor.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent e) { - if (eeprom_thread != null) - eeprom_thread.interrupt(); - } - }); + monitor = new AltosEepromMonitorUI(given_frame); + monitor.set_states(Altos.ao_flight_boost, Altos.ao_flight_landed); + + monitor.set_thread(eeprom_thread); } } |