altoslib: Pass InterruptedException up the stack instead of hiding it
[fw/altos] / altoslib / AltosMma655x.java
index 8dc947dbab804d900ba9d399c8e022676dac0124..f825619016d515d952a46978ff8926caae272314 100644 (file)
@@ -44,14 +44,13 @@ public class AltosMma655x implements Cloneable {
                return n;
        }
 
-       static public void update_state(AltosState state, AltosLink link, AltosConfigData config_data) {
+       static public void update_state(AltosState state, AltosLink link, AltosConfigData config_data) throws InterruptedException {
                try {
                        AltosMma655x    mma655x = new AltosMma655x(link);
 
                        if (mma655x != null)
                                state.set_accel(mma655x.accel);
                } catch (TimeoutException te) {
-               } catch (InterruptedException ie) {
                }
        }