altosui: Handle .mega files in Landed tab 'Graph Flight' button
authorKeith Packard <keithp@keithp.com>
Mon, 22 Oct 2012 00:00:08 +0000 (17:00 -0700)
committerKeith Packard <keithp@keithp.com>
Mon, 22 Oct 2012 00:00:08 +0000 (17:00 -0700)
Need to check for .mega files here too.

Signed-off-by: Keith Packard <keithp@keithp.com>
altosui/AltosLanded.java

index 0111a08a0df6a596e8b0d32434a15a6e7e60d715..5e073f7dce7184ff31ce9a7255c569f75c32e35e 100644 (file)
@@ -250,6 +250,9 @@ public class AltosLanded extends JComponent implements AltosFlightDisplay, Actio
                                        } else if (filename.endsWith("telem")) {
                                                FileInputStream in = new FileInputStream(file);
                                                records = new AltosTelemetryIterable(in);
+                                       } else if (filename.endsWith("mega")) {
+                                               FileInputStream in = new FileInputStream(file);
+                                               records = new AltosEepromMegaIterable(in);
                                        } else {
                                                throw new FileNotFoundException(filename);
                                        }