altos/altosui: Report log format in the version command
[fw/altos] / altosui / AltosConfig.java
index 7312ea6ccf48fa71e321b74426a9f3dc207dec2f..ffabe2092b0ffd1135529f3464bb8f03067a042c 100644 (file)
@@ -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);