summaryrefslogtreecommitdiff
path: root/src/test/ao_flight_test.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2017-09-18 09:56:14 -0700
committerKeith Packard <keithp@keithp.com>2017-09-18 09:59:44 -0700
commit1d8cd79670181cb47087bc63ac3966d47698deb5 (patch)
tree8add2c0f2d840b817d5256eea2b4ebb093ea23d2 /src/test/ao_flight_test.c
parent0d08ccda08cfffd92a58683349af257792ecfaf1 (diff)
altos/test: Add fake flight creation toolfake-flight
This reads eeprom data and generates a fake flight record Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/test/ao_flight_test.c')
-rw-r--r--src/test/ao_flight_test.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/ao_flight_test.c b/src/test/ao_flight_test.c
index 298848d6..cc461983 100644
--- a/src/test/ao_flight_test.c
+++ b/src/test/ao_flight_test.c
@@ -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;