altos: Remove unused ao_adc_get from ao_adc_stm.c
[fw/altos] / ao-tools / ao-view / aoview_eeprom.c
index 34e2deedad12c0aa7bece87e4fc1ec4594daa6f8..99da1a6b1e554c759b3495278d9db82361ca60b2 100644 (file)
@@ -3,7 +3,8 @@
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful, but
  * WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -66,6 +67,8 @@ aoview_eeprom_parse(struct aoview_serial *serial,
        if (sscanf(line, "serial-number %u", &serial_number) == 1) {
                aoview_file_set_serial(eeprom_file, serial_number);
        } else if (sscanf(line, "%c %x %x %x", &cmd, &tick, &a, &b) == 4) {
+               if (cmd == 'F')
+                       aoview_file_set_flight(eeprom_file, b);
                aoview_file_printf(eeprom_file, "%s\n", line);
                if (cmd == 'S' && a == 8) {
                        aoview_eeprom_done(serial);