altosui: Parse .mega files from command line
authorKeith Packard <keithp@keithp.com>
Sat, 13 Oct 2012 20:32:56 +0000 (13:32 -0700)
committerKeith Packard <keithp@keithp.com>
Sat, 13 Oct 2012 20:32:56 +0000 (13:32 -0700)
Signed-off-by: Keith Packard <keithp@keithp.com>
altosui/AltosUI.java

index b5cbefe73a352ae78362c3d1c4679b5eef21a8c9..dcc0de600817aab22666705581ffe42afa8de996 100644 (file)
@@ -444,6 +444,8 @@ public class AltosUI extends AltosFrame {
                //AltosReplayReader reader;
                if (file.getName().endsWith("eeprom")) {
                        recs = new AltosEepromIterable(in);
                //AltosReplayReader reader;
                if (file.getName().endsWith("eeprom")) {
                        recs = new AltosEepromIterable(in);
+               } else if (file.getName().endsWith("mega")) {
+                       recs = new AltosEepromMegaIterable(in);
                } else {
                        recs = new AltosTelemetryIterable(in);
                }
                } else {
                        recs = new AltosTelemetryIterable(in);
                }