X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=micropeak%2FMicroDownload.java;h=49bcaf54e4ef994b034f30c8348208efa384fa28;hb=debian;hp=7e3d1e593dfc6658d737902ec5546afecdffb905;hpb=ffbd99545ca0462161c24e0ed86978544f2c28f6;p=fw%2Faltos diff --git a/micropeak/MicroDownload.java b/micropeak/MicroDownload.java index 7e3d1e59..4dcb7a36 100644 --- a/micropeak/MicroDownload.java +++ b/micropeak/MicroDownload.java @@ -190,12 +190,7 @@ public class MicroDownload extends AltosUIDialog implements Runnable, ActionList } public void start() { - try { - serial = new MicroSerial(device); - serial.set_log(this); - } catch (FileNotFoundException fe) { - return; - } + serial.set_log(this); serial_thread = new Thread(this); serial_thread.start(); @@ -212,7 +207,7 @@ public class MicroDownload extends AltosUIDialog implements Runnable, ActionList setVisible(false); } - public MicroDownload(MicroPeak owner, AltosDevice device) { + public MicroDownload(MicroPeak owner, AltosDevice device, MicroSerial serial) { super (owner, "Download MicroPeak Data", false); int y = 0; @@ -223,6 +218,7 @@ public class MicroDownload extends AltosUIDialog implements Runnable, ActionList this.owner = owner; this.device = device; + this.serial = serial; pane = getScrollablePane(); pane.setLayout(new GridBagLayout());