diff options
author | Keith Packard <keithp@keithp.com> | 2013-08-26 17:17:47 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-08-26 17:17:47 -0700 |
commit | 4e3955a5b0ac125bd807920c467f959618449fbc (patch) | |
tree | 6fc497000b37046ba904857911bbf622c90295ad /src | |
parent | 3b2f83a7d686b5fbc0aaa56d48cb734f353631c8 (diff) |
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 <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/cc1111/ao_timer.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 } |