diff options
author | Anthony Towns <aj@erisian.com.au> | 2010-11-23 10:14:55 +1000 |
---|---|---|
committer | Anthony Towns <aj@erisian.com.au> | 2010-11-23 10:14:55 +1000 |
commit | d1005f68376d695039c314b8d7a68bbf9acbca4f (patch) | |
tree | 9352713fa7cb5f80614a170c29f2c4be0e8d30f5 /ao-tools/altosui/AltosFlash.java | |
parent | 9a83e0dc79f7a7467c7814d58daa2a2b89e50972 (diff) | |
parent | 22c09781af1df4b38562b577e9926c23e4a397f2 (diff) |
Merge branch 'buttonbox' of git://git.gag.com/fw/altos into buttonbox
Diffstat (limited to 'ao-tools/altosui/AltosFlash.java')
-rw-r--r-- | ao-tools/altosui/AltosFlash.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ao-tools/altosui/AltosFlash.java b/ao-tools/altosui/AltosFlash.java index fa2465d3..3af25c23 100644 --- a/ao-tools/altosui/AltosFlash.java +++ b/ao-tools/altosui/AltosFlash.java @@ -336,7 +336,9 @@ public class AltosFlash { debug = new AltosDebug(in_debug_dongle); input = new FileInputStream(file); image = new AltosHexfile(input); - if (!debug.check_connection()) + if (!debug.check_connection()) { + debug.close(); throw new IOException("Debug port not connected"); + } } }
\ No newline at end of file |