X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=altoslib%2FAltosIgnite.java;h=ca9f419cedc3acb146e8af9fd30899de98de13d7;hb=755082d36231c1b247bc0e1f13919dd9b5c362a8;hp=cc814337d1510ad4e225e40c3de67986c3233d5c;hpb=233ab58df8ac8e1fdeab8d4c2f6c8c9d3f6e7be1;p=fw%2Faltos diff --git a/altoslib/AltosIgnite.java b/altoslib/AltosIgnite.java index cc814337..ca9f419c 100644 --- a/altoslib/AltosIgnite.java +++ b/altoslib/AltosIgnite.java @@ -15,7 +15,7 @@ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ -package org.altusmetrum.AltosLib; +package org.altusmetrum.altoslib_3; import java.io.*; import java.util.concurrent.*; @@ -64,6 +64,7 @@ public class AltosIgnite { } } + /* private boolean get_string(String line, String label, string_ref s) { if (line.startsWith(label)) { String quoted = line.substring(label.length()).trim(); @@ -78,6 +79,7 @@ public class AltosIgnite { return false; } } + */ private int status(String status_name) { if (status_name.equals("unknown")) @@ -95,7 +97,7 @@ public class AltosIgnite { int status = Unknown; if (link == null) return status; - string_ref status_name = new string_ref(); + //string_ref status_name = new string_ref(); try { start_link(); link.printf("t\n"); @@ -139,7 +141,7 @@ public class AltosIgnite { } } - public void fire(int igniter) { + public void fire(int igniter) throws InterruptedException { if (link == null) return; try { @@ -152,21 +154,14 @@ public class AltosIgnite { link.printf("i DoIt drogue\n"); break; } - } catch (InterruptedException ie) { } catch (TimeoutException te) { } finally { - try { - stop_link(); - } catch (InterruptedException ie) { - } + stop_link(); } } - public void close() { - try { - stop_link(); - } catch (InterruptedException ie) { - } + public void close() throws InterruptedException { + stop_link(); link.close(); link = null; }