diff options
author | Keith Packard <keithp@keithp.com> | 2017-05-09 02:31:04 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2017-05-09 02:31:04 -0700 |
commit | 0641326842bffbf4b3ae69459ca540131cb64e59 (patch) | |
tree | 31231c75d916a978de51c4f303af516e147de115 /altosui/AltosUI.java | |
parent | 17e20a6d2dab1f4bd1375bfd9e1c5230ee2c1119 (diff) |
altoslib: Remove older eeprom handling code
The new code appears to work in minor testing; time to try it all the time.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosUI.java')
-rw-r--r-- | altosui/AltosUI.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/altosui/AltosUI.java b/altosui/AltosUI.java index b0c6d33b..72c3c161 100644 --- a/altosui/AltosUI.java +++ b/altosui/AltosUI.java @@ -367,16 +367,16 @@ public class AltosUI extends AltosUIFrame { static AltosStateIterable open_logfile(File file) { try { - FileInputStream in; - - in = new FileInputStream(file); if (file.getName().endsWith("telem")) - return new AltosTelemetryFile(in); + return new AltosTelemetryFile(new FileInputStream(file)); else - return new AltosEepromFile(in); + return new AltosEepromFile(new FileReader(file)); } catch (FileNotFoundException fe) { System.out.printf("%s\n", fe.getMessage()); return null; + } catch (IOException ie) { + System.out.printf("%s\n", ie.getMessage()); + return null; } } |