diff options
author | Bdale Garbee <bdale@gag.com> | 2012-05-16 09:13:53 -0600 |
---|---|---|
committer | Bdale Garbee <bdale@gag.com> | 2012-05-16 09:13:53 -0600 |
commit | 6a973f788563ccc66b01cc7557a004dabef18d09 (patch) | |
tree | ffbc8faad73cde7934c4050deb840092430a311f /src/core/ao_telemetry.c | |
parent | d387f246b24502642b76aad04eb3e0f1a5b78a05 (diff) | |
parent | da2c920b9f3378d5a18551e008c1da5dace1e0ef (diff) |
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Diffstat (limited to 'src/core/ao_telemetry.c')
-rw-r--r-- | src/core/ao_telemetry.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/ao_telemetry.c b/src/core/ao_telemetry.c index eb614b0f..46d72609 100644 --- a/src/core/ao_telemetry.c +++ b/src/core/ao_telemetry.c @@ -53,8 +53,7 @@ static __xdata union ao_telemetry_all telemetry; static void ao_send_sensor(void) { - uint8_t sample; - sample = ao_sample_adc; + uint8_t sample = ao_adc_ring_prev(ao_sample_adc); telemetry.generic.tick = ao_adc_ring[sample].tick; telemetry.generic.type = AO_TELEMETRY_SENSOR; |