altos: Report latest telemetry data, rather than using the oldest
authorKeith Packard <keithp@keithp.com>
Tue, 1 May 2012 18:08:49 +0000 (11:08 -0700)
committerKeith Packard <keithp@keithp.com>
Tue, 1 May 2012 18:08:49 +0000 (11:08 -0700)
commit8b08095b3d41e21684a10bddfb54431019da5af6
tree56083711136e4a59f1c2a591844a4c744dd849bc
parent7b0b6bcc40891d8dd106d091d3af8107b2941c66
altos: Report latest telemetry data, rather than using the oldest

ao_sample_adc points to the *next* ADC entry, rather than the most
recent one. Step back one entry to get the latest valid data.

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