altos: Start logging telemetry data right at boot time
authorKeith Packard <keithp@keithp.com>
Sun, 28 Aug 2011 22:18:29 +0000 (15:18 -0700)
committerKeith Packard <keithp@keithp.com>
Sun, 28 Aug 2011 22:18:29 +0000 (15:18 -0700)
Anything logging telemetry data should just start logging packets as
soon as they boot.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/core/ao_log_telem.c

index 34abe87..af0e8e6 100644 (file)
@@ -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));
                }
        }