altoslib: Pass InterruptedException up the stack instead of hiding it
[fw/altos] / altoslib / AltosFlash.java
index 0906f2ef0ffe74c40be2190241f4619d9f5055c2..0977070e2a2883adba4a49b772712c5c6dd436b0 100644 (file)
@@ -318,7 +318,7 @@ public class AltosFlash extends AltosProgrammer {
                close();
        }
 
-       public boolean check_rom_config() {
+       public boolean check_rom_config() throws InterruptedException {
                if (debug == null)
                        return true;
                if (rom_config == null)
@@ -330,7 +330,7 @@ public class AltosFlash extends AltosProgrammer {
                rom_config = romconfig;
        }
 
-       public AltosRomconfig romconfig() {
+       public AltosRomconfig romconfig() throws InterruptedException {
                if (!check_rom_config())
                        return null;
                return rom_config;