projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altoslib: Remove older eeprom handling code
[fw/altos]
/
altosui
/
AltosUI.java
diff --git
a/altosui/AltosUI.java
b/altosui/AltosUI.java
index b0c6d33b843f7630be9b8364b3f787a56a6a1497..72c3c161b4809042423330098ed5307ea1cf4e93 100644
(file)
--- a/
altosui/AltosUI.java
+++ b/
altosui/AltosUI.java
@@
-367,16
+367,16
@@
public class AltosUI extends AltosUIFrame {
static AltosStateIterable open_logfile(File file) {
try {
static AltosStateIterable open_logfile(File file) {
try {
- FileInputStream in;
-
- in = new FileInputStream(file);
if (file.getName().endsWith("telem"))
if (file.getName().endsWith("telem"))
- return new AltosTelemetryFile(
in
);
+ return new AltosTelemetryFile(
new FileInputStream(file)
);
else
else
- return new AltosEepromFile(
in
);
+ return new AltosEepromFile(
new FileReader(file)
);
} catch (FileNotFoundException fe) {
System.out.printf("%s\n", fe.getMessage());
return null;
} catch (FileNotFoundException fe) {
System.out.printf("%s\n", fe.getMessage());
return null;
+ } catch (IOException ie) {
+ System.out.printf("%s\n", ie.getMessage());
+ return null;
}
}
}
}