summaryrefslogtreecommitdiff
path: root/src/ao_log.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-01-15 00:50:39 -0800
committerKeith Packard <keithp@keithp.com>2011-01-15 00:50:39 -0800
commite13337cfb536ff65979b655f1763d62ec0126c67 (patch)
treebab19228119919a0ff234d4a3ce7af2f9ff75549 /src/ao_log.c
parent35adb7c98fe02e84fff70c1bee22bfa019cfacc2 (diff)
altos: Add 5V reference computation for v1.1 boards.
This should compensate for changes in the 3.3V voltage. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/ao_log.c')
-rw-r--r--src/ao_log.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ao_log.c b/src/ao_log.c
index 8666482b..ea36da5e 100644
--- a/src/ao_log.c
+++ b/src/ao_log.c
@@ -99,10 +99,10 @@ ao_log(void)
/* Write the whole contents of the ring to the log
* when starting up.
*/
- ao_log_adc_pos = ao_adc_ring_next(ao_adc_head);
+ ao_log_adc_pos = ao_adc_ring_next(ao_flight_adc);
for (;;) {
/* Write samples to EEPROM */
- while (ao_log_adc_pos != ao_adc_head) {
+ while (ao_log_adc_pos != ao_flight_adc) {
log.type = AO_LOG_SENSOR;
log.tick = ao_adc_ring[ao_log_adc_pos].tick;
log.u.sensor.accel = ao_adc_ring[ao_log_adc_pos].accel;