altos/cc1111: Wake up non-ADC sensor code each timer tick
authorKeith Packard <keithp@keithp.com>
Tue, 27 Aug 2013 00:17:47 +0000 (17:17 -0700)
committerKeith Packard <keithp@keithp.com>
Tue, 27 Aug 2013 00:17:47 +0000 (17:17 -0700)
Make sure the MS5607 code gets told to sample every tick

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

index a64b5aba90a0fb5e104a3005dbf2cdda464056ad..54af9605b59bb997fa75b89508bb45e41f06e8d8 100644 (file)
@@ -39,6 +39,9 @@ void ao_timer_isr(void) __interrupt 9
        if (++ao_adc_count == ao_adc_interval) {
                ao_adc_count = 0;
                ao_adc_poll();
+#if (AO_DATA_ALL & ~(AO_DATA_ADC))
+               ao_wakeup(DATA_TO_XDATA(&ao_adc_count));
+#endif
        }
 #endif
 }