} else if (filename.endsWith("telem")) {
FileInputStream in = new FileInputStream(file);
return new AltosTelemetryIterable(in);
+ } else if (filename.endsWith("mega")) {
+ FileInputStream in = new FileInputStream(file);
+ return new AltosEepromMegaIterable(in);
} else {
throw new FileNotFoundException();
}
} catch (FileNotFoundException fe) {
JOptionPane.showMessageDialog(frame,
- filename,
+ fe.getMessage(),
"Cannot open file",
JOptionPane.ERROR_MESSAGE);
}
setDialogTitle("Select Flight Record File");
setFileFilter(new FileNameExtensionFilter("Flight data file",
"telem", "eeprom"));
- setCurrentDirectory(AltosPreferences.logdir());
+ setCurrentDirectory(AltosUIPreferences.logdir());
}
}