diff options
author | Keith Packard <keithp@keithp.com> | 2011-07-13 20:01:47 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-08-27 12:33:46 -0700 |
commit | f145be3fc4ee94fdb5c1e2406b6c11d38bdbbd9b (patch) | |
tree | b23fb714f62a0bc1dd87b43c11a2a44f0a9d0a18 /src/cc1111/ao_adc.c | |
parent | 859ee0268b9f2e1f5933019f1231d857a1cac4da (diff) |
altos: Start telelaunch product
Looks a lot like TM, but without the flight code.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/cc1111/ao_adc.c')
-rw-r--r-- | src/cc1111/ao_adc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cc1111/ao_adc.c b/src/cc1111/ao_adc.c index 786dfd11..6aa6e018 100644 --- a/src/cc1111/ao_adc.c +++ b/src/cc1111/ao_adc.c @@ -41,7 +41,11 @@ ao_adc_poll(void) void ao_adc_get(__xdata struct ao_adc *packet) { +#if HAS_FLIGHT uint8_t i = ao_adc_ring_prev(ao_sample_adc); +#else + uint8_t i = ao_adc_ring_prev(ao_adc_head); +#endif memcpy(packet, &ao_adc_ring[i], sizeof (struct ao_adc)); } |