AltosEepromManage manage;
public void run () {
+ Runnable r;
try {
flights = new AltosEepromList(serial_line, remote);
- Runnable r = new Runnable() {
+ r = new Runnable() {
public void run() {
- manage.got_flights(flights);
+ got_flights(flights);
}
};
- SwingUtilities.invokeLater(r);
} catch (Exception e) {
- manage.got_exception(e);
+ final Exception f_e = e;
+ r = new Runnable() {
+ public void run() {
+ got_exception(f_e);
+ }
+ };
}
+ SwingUtilities.invokeLater(r);
}
public EepromGetList(AltosEepromManage in_manage) {
boolean running = false;
frame = given_frame;
- device = AltosDeviceDialog.show(frame, AltosDevice.product_any);
+ device = AltosDeviceDialog.show(frame, Altos.product_any);
remote = false;
any_download = false;
if (device != null) {
try {
serial_line = new AltosSerial(device);
- if (!device.matchProduct(AltosDevice.product_telemetrum))
+ if (!device.matchProduct(Altos.product_telemetrum))
remote = true;
serial_line.set_frame(frame);