altos: Ensure flight code gets first crack at new ADC data
[fw/altos] / src / ao_flight_test.c
index 108d2c19fff5271beee64d45ef8a35542af6ec2e..5c61951853d63c84ddc6905be651b002a1e9a2d0 100644 (file)
@@ -180,7 +180,7 @@ void
 ao_sleep(void *wchan)
 {
        ao_dump_state();
-       if (wchan == &ao_adc_ring) {
+       if (wchan == &ao_adc_head) {
                char            type;
                uint16_t        tick;
                uint16_t        a, b;