public void close() {
if (link != null) {
reboot();
- link.close();
+ try {
+ link.close();
+ } catch (InterruptedException ie) {
+ }
link = null;
}
}
close();
}
- private AltosHexfile get_rom() {
+ private AltosHexfile get_rom() throws InterruptedException {
System.out.printf("get rom\n");
try {
int base = AltosRomconfig.fetch_base(image);
} catch (AltosNoSymbol none) {
System.out.printf("no symbol %s\n", none.getMessage());
return null;
- } catch (InterruptedException ie) {
- return null;
} catch (IOException ie) {
return null;
}
}
- public boolean check_rom_config() {
+ public boolean check_rom_config() throws InterruptedException {
if (link == null) {
System.out.printf ("no link\n");
return true;
rom_config = romconfig;
}
- public AltosRomconfig romconfig() {
+ public AltosRomconfig romconfig() throws InterruptedException {
System.out.printf("fetch romconfig\n");
if (!check_rom_config())
return null;