From: Keith Packard Date: Tue, 27 Aug 2013 00:17:47 +0000 (-0700) Subject: altos/cc1111: Wake up non-ADC sensor code each timer tick X-Git-Tag: 1.2.9.4~118^2~5 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=4e3955a5b0ac125bd807920c467f959618449fbc;hp=3b2f83a7d686b5fbc0aaa56d48cb734f353631c8 altos/cc1111: Wake up non-ADC sensor code each timer tick Make sure the MS5607 code gets told to sample every tick Signed-off-by: Keith Packard --- diff --git a/src/cc1111/ao_timer.c b/src/cc1111/ao_timer.c index a64b5aba..54af9605 100644 --- a/src/cc1111/ao_timer.c +++ b/src/cc1111/ao_timer.c @@ -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 }