summaryrefslogtreecommitdiff
path: root/altosui/AltosConfig.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/AltosConfig.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/AltosConfig.java')
-rw-r--r--altosui/AltosConfig.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/altosui/AltosConfig.java b/altosui/AltosConfig.java
index 7312ea6c..ffabe209 100644
--- a/altosui/AltosConfig.java
+++ b/altosui/AltosConfig.java
@@ -67,6 +67,7 @@ public class AltosConfig implements ActionListener {
AltosConfigData remote_config_data;
double remote_frequency;
int_ref serial;
+ int_ref log_format;
int_ref main_deploy;
int_ref apogee_delay;
int_ref radio_channel;
@@ -153,6 +154,7 @@ public class AltosConfig implements ActionListener {
return;
}
get_int(line, "serial-number", serial);
+ get_int(line, "log-format", log_format);
get_int(line, "Main deploy:", main_deploy);
get_int(line, "Apogee delay:", apogee_delay);
get_int(line, "Radio channel:", radio_channel);
@@ -374,6 +376,7 @@ public class AltosConfig implements ActionListener {
owner = given_owner;
serial = new int_ref(0);
+ log_format = new int_ref(Altos.AO_LOG_FORMAT_UNKNOWN);
main_deploy = new int_ref(250);
apogee_delay = new int_ref(0);
radio_channel = new int_ref(0);