altosui: Accept serial number of zero for eeprom download
[fw/altos] / altoslib / AltosConfigData.java
index c6e92e620d16b39e5ed3fe4e11f5a6b342f5ff3a..a962b1058ed5da60b9b4682a337839ba37ba2aeb 100644 (file)
@@ -134,6 +134,7 @@ public class AltosConfigData implements Iterable<String> {
                radio_setting = 0;
                radio_frequency = 0;
                stored_flight = 0;
+               serial = -1;
                for (;;) {
                        String line = link.get_reply();
                        if (line == null)
@@ -167,6 +168,7 @@ public class AltosConfigData implements Iterable<String> {
                        try { callsign = get_string(line, "Callsign:"); } catch (Exception e) {}
                        try { version = get_string(line,"software-version"); } catch (Exception e) {}
                        try { product = get_string(line,"product"); } catch (Exception e) {}
+                       try { manufacturer = get_string(line,"manufacturer"); } catch (Exception e) {}
 
                        try { get_int(line, "flight"); stored_flight++; }  catch (Exception e) {}
                        try { storage_size = get_int(line, "Storage size:"); } catch (Exception e) {}