diff options
author | Bdale Garbee <bdale@gag.com> | 2011-01-17 09:50:17 -0700 |
---|---|---|
committer | Bdale Garbee <bdale@gag.com> | 2011-01-17 09:50:17 -0700 |
commit | da42f406e88ccc821cd45d5a94d5afec65ec50e9 (patch) | |
tree | 53482327b8f5d49d052c42943510b4524b6a9d21 /src/ao_log.c | |
parent | ea4cdfb87e03ecfb974f98305671265b6fb95372 (diff) | |
parent | cf550f9b96fa94d8db559e01df0e265bb1c7b572 (diff) |
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Diffstat (limited to 'src/ao_log.c')
-rw-r--r-- | src/ao_log.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ao_log.c b/src/ao_log.c index fa072550..099c5f6f 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; |