projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
micropeak: Use altosuilib
[fw/altos]
/
altosui
/
AltosFlash.java
diff --git
a/altosui/AltosFlash.java
b/altosui/AltosFlash.java
index 802adc8cd771aed965dfe6b91c1e1582d5632519..313af70bd90258f600a000a73a0791e58be13c36 100644
(file)
--- a/
altosui/AltosFlash.java
+++ b/
altosui/AltosFlash.java
@@
-17,18
+17,11
@@
package altosui;
package altosui;
-import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.awt.event.*;
import javax.swing.*;
-import javax.swing.filechooser.FileNameExtensionFilter;
-import javax.swing.table.*;
import java.io.*;
import java.io.*;
-import java.util.*;
-import java.text.*;
-import java.util.prefs.*;
-import java.util.concurrent.LinkedBlockingQueue;
-public class AltosFlash
implements Runnable
{
+public class AltosFlash {
File file;
FileInputStream input;
AltosHexfile image;
File file;
FileInputStream input;
AltosHexfile image;
@@
-252,9
+245,7
@@
public class AltosFlash implements Runnable {
throw new IOException("Failed to execute program on target");
}
throw new IOException("Failed to execute program on target");
}
- Thread thread;
-
- public void run() {
+ public void flash() {
try {
if (!check_rom_config())
throw new IOException("Invalid rom config settings");
try {
if (!check_rom_config())
throw new IOException("Invalid rom config settings");
@@
-333,15
+324,14
@@
public class AltosFlash implements Runnable {
}
}
}
}
- public void
flash
() {
- thread = new Thread(this);
-
thread.start
();
+ public void
close
() {
+ if (debug != null)
+
debug.close
();
}
synchronized public void abort() {
aborted = true;
}
synchronized public void abort() {
aborted = true;
- if (debug != null)
- debug.close();
+ close();
}
public void addActionListener(ActionListener l) {
}
public void addActionListener(ActionListener l) {