altos: Correct AO_CONFIG_MINOR from 6 to 7
[fw/altos] / altosui / AltosConfigData.java
index aa7a90de08c7c234b7f123eb7c3e80c563aded26..710231d74c827fb7380c40f698dd5a04e6d8582f 100644 (file)
@@ -36,6 +36,7 @@ public class AltosConfigData implements Iterable<String> {
        String  manufacturer;
        String  product;
        String  version;
+       int     log_format;
        int     serial;
 
        /* Strings returned */
@@ -85,6 +86,7 @@ public class AltosConfigData implements Iterable<String> {
        public AltosConfigData(AltosSerial serial_line) throws InterruptedException, TimeoutException {
                serial_line.printf("c s\nv\n");
                lines = new LinkedList<String>();
+               radio_setting = 0;
                for (;;) {
                        String line = serial_line.get_reply();
                        if (line == null)
@@ -93,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) {}