altos/test: Add fake flight creation tool
[fw/altos] / src / test / ao_flight_test.c
index 298848d6a46b4a7921bd8fddb9ba4605020e3e25..cc46198346f4a4b2643756154ed0e6425e8bcca5 100644 (file)
@@ -774,10 +774,11 @@ ao_sleep(void *wchan)
 #endif
 
                                if (eeprom_offset >= eeprom->len) {
-                                       if (++ao_eof_read >= 1000)
+                                       if (++ao_eof_read >= 1000) {
                                                if (!ao_summary)
                                                        printf ("no more data, exiting simulation\n");
-                                       ao_test_exit();
+                                               ao_test_exit();
+                                       }
                                        ao_data_static.tick += 10;
                                        ao_insert();
                                        return;