From: Bdale Garbee Date: Wed, 10 May 2017 22:18:16 +0000 (-0600) Subject: teststand: use new eeprom reading code X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=81a3016859b24379f3e505224f589fb75da12af2;p=fw%2Faltos teststand: use new eeprom reading code --- diff --git a/teststand/TestStand.java b/teststand/TestStand.java index 5d9fe781..6bfbb735 100644 --- a/teststand/TestStand.java +++ b/teststand/TestStand.java @@ -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) {