summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-08-28 15:18:29 -0700
committerKeith Packard <keithp@keithp.com>2011-08-28 15:18:29 -0700
commite53557373e539d591a03d02db146b27d08c7eba3 (patch)
treeb6d5f31962318cf805b3312d398d8cef1aaf09b1
parentb33a92e372327158ab21c1bb2d091c58761efe10 (diff)
altos: Start logging telemetry data right at boot time
Anything logging telemetry data should just start logging packets as soon as they boot. Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--src/core/ao_log_telem.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/ao_log_telem.c b/src/core/ao_log_telem.c
index 34abe879..af0e8e6b 100644
--- a/src/core/ao_log_telem.c
+++ b/src/core/ao_log_telem.c
@@ -31,6 +31,7 @@ ao_log_single(void)
*/
ao_delay(AO_SEC_TO_TICKS(2));
+ ao_log_running = 1;
ao_log_single_restart();
for (;;) {
while (!ao_log_running)
@@ -46,7 +47,7 @@ ao_log_single(void)
ao_log_single_write();
ao_log_monitor_pos = ao_monitor_ring_next(ao_log_monitor_pos);
}
- /* Wait for more ADC data to arrive */
+ /* Wait for more telemetry data to arrive */
ao_sleep(DATA_TO_XDATA(&ao_monitor_head));
}
}