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/AltosLanded.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/AltosLanded.java')
-rw-r--r-- | altosui/AltosLanded.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/altosui/AltosLanded.java b/altosui/AltosLanded.java index ded08537..25d4fcc8 100644 --- a/altosui/AltosLanded.java +++ b/altosui/AltosLanded.java @@ -125,7 +125,7 @@ public class AltosLanded extends AltosUIFlightTab implements ActionListener { try { AltosStateIterable states = null; if (filename.endsWith("eeprom")) { - FileInputStream in = new FileInputStream(file); + FileReader in = new FileReader(file); states = new AltosEepromFile(in); } else if (filename.endsWith("telem")) { FileInputStream in = new FileInputStream(file); @@ -143,6 +143,11 @@ public class AltosLanded extends AltosUIFlightTab implements ActionListener { fe.getMessage(), "Cannot open file", JOptionPane.ERROR_MESSAGE); + } catch (IOException ie) { + JOptionPane.showMessageDialog(null, + ie.getMessage(), + "Error reading file file", + JOptionPane.ERROR_MESSAGE); } } } |