altoslib: Pass InterruptedException up the stack instead of hiding it
[fw/altos] / altoslib / AltosSensorMetrum.java
index 4a51d492db4188f9d69861f600a34de49c1abb15..c30eaebd9a15ce60632d37162f47330fadb883d5 100644 (file)
@@ -52,14 +52,13 @@ class AltosSensorMetrum {
                }
        }
 
-       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 {
                        AltosSensorMetrum       sensor_metrum = new AltosSensorMetrum(link);
                        state.set_battery_voltage(AltosConvert.mega_battery_voltage(sensor_metrum.v_batt));
                        state.set_apogee_voltage(AltosConvert.mega_pyro_voltage(sensor_metrum.sense_a));
                        state.set_main_voltage(AltosConvert.mega_pyro_voltage(sensor_metrum.sense_m));
                } catch (TimeoutException te) {
-               } catch (InterruptedException ie) {
                }
        }
 }