From 81a3016859b24379f3e505224f589fb75da12af2 Mon Sep 17 00:00:00 2001 From: Bdale Garbee Date: Wed, 10 May 2017 16:18:16 -0600 Subject: [PATCH] teststand: use new eeprom reading code --- teststand/TestStand.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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) { -- 2.30.2