altosui: Fixed width format for new IMU values.
[fw/altos] / altosui / AltosDataChooser.java
index 15de05c2bb510723dabbe22704cbc41d55e57dad..488e1068b18bad58958726d00ffd0c19ef4a2696 100644 (file)
@@ -56,12 +56,15 @@ public class AltosDataChooser extends JFileChooser {
                                } 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);
                        }