altoslib: Bump library version
[fw/altos] / altoslib / AltosIgnite.java
index cc814337d1510ad4e225e40c3de67986c3233d5c..ca9f419cedc3acb146e8af9fd30899de98de13d7 100644 (file)
@@ -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;
        }