teststand: use new eeprom reading code
[fw/altos] / teststand / TestStand.java
index 5d9fe7810d56d3224cd052269f5eb2bb54ac5e24..6bfbb735664976128355173f7df5b808aa103f26 100644 (file)
@@ -586,15 +586,12 @@ public class TestStand
        static AltosStateIterable record_iterable(File file) {
                FileInputStream in;
                try {
-                       in = new FileInputStream(file);
+                       AltosEepromFile f = new AltosEepromFile(new FileReader(file));
+                       return f;
                } catch (Exception e) {
                        System.out.printf("Failed to open file '%s'\n", file);
-                       return null;
                }
-               if (file.getName().endsWith("telem"))
-                       return new AltosTelemetryFile(in);
-               else
-                       return new AltosEepromFile(in);
+               return null;
        }
 
        static AltosReplayReader replay_file(File file) {