summaryrefslogtreecommitdiff
path: root/altosui/AltosConfigData.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-08-12 21:43:56 -0700
committerKeith Packard <keithp@keithp.com>2011-08-13 18:44:26 -0700
commitbf06af154e232d4caa1585a1d6d5279a075292e4 (patch)
treef3e6a4f162eef9284996b7637e360422a9b12ba5 /altosui/AltosConfigData.java
parentc2f2f519dbc8ce233ab36222088c1be6b1362f01 (diff)
altos/altosui: Report log format in the version command
This will make it easier to figure out what the contents of the flash should look like from altosui; the current 'guessing' mechanism will not scale to many more formats. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosConfigData.java')
-rw-r--r--altosui/AltosConfigData.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/altosui/AltosConfigData.java b/altosui/AltosConfigData.java
index 016033a3..710231d7 100644
--- a/altosui/AltosConfigData.java
+++ b/altosui/AltosConfigData.java
@@ -36,6 +36,7 @@ public class AltosConfigData implements Iterable<String> {
String manufacturer;
String product;
String version;
+ int log_format;
int serial;
/* Strings returned */
@@ -94,6 +95,7 @@ public class AltosConfigData implements Iterable<String> {
continue;
lines.add(line);
try { serial = get_int(line, "serial-number"); } catch (Exception e) {}
+ try { log_format = get_int(line, "log-format"); } catch (Exception e) {}
try { main_deploy = get_int(line, "Main deploy:"); } catch (Exception e) {}
try { apogee_delay = get_int(line, "Apogee delay:"); } catch (Exception e) {}
try { radio_channel = get_int(line, "Radio channel:"); } catch (Exception e) {}