diff options
author | Keith Packard <keithp@keithp.com> | 2013-03-24 16:01:08 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-03-24 16:01:08 -0700 |
commit | 4e606d05f4523a5afc46fbb7cdd8fd3c12836ab9 (patch) | |
tree | 07f9447925a696d4820b57de82ce0ca3f2f77372 /altosui/AltosFlash.java | |
parent | adf9e490684f0d2792264056f486d0f7b6e448b2 (diff) |
altosui & altoslib: Move a pile of debug/programming bits to altoslib
Prepare to create external Java utilities to flash devices
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosFlash.java')
-rw-r--r-- | altosui/AltosFlash.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/altosui/AltosFlash.java b/altosui/AltosFlash.java index 239d4dd7..b409a611 100644 --- a/altosui/AltosFlash.java +++ b/altosui/AltosFlash.java @@ -20,6 +20,7 @@ package altosui; import java.awt.event.*; import javax.swing.*; import java.io.*; +import org.altusmetrum.altoslib_1.*; import org.altusmetrum.altosuilib_1.*; public class AltosFlash { @@ -362,7 +363,7 @@ public class AltosFlash { file = in_file; debug_dongle = in_debug_dongle; if (debug_dongle != null) - debug = new AltosDebug(in_debug_dongle); + debug = new AltosDebug(new AltosSerial(in_debug_dongle)); input = new FileInputStream(file); image = new AltosHexfile(input); if (debug != null && !debug.check_connection()) { |