diff options
author | Keith Packard <keithp@keithp.com> | 2009-04-23 22:17:44 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2009-04-24 08:39:00 -0700 |
commit | b32f2f0090ff967edac07ae4d7a9895ed0b96d31 (patch) | |
tree | 562b7c1ab3127686995dc19cc986fefa672f5c56 /ao_log.c | |
parent | f155333ae18a25068644792e8940269d9fb28033 (diff) |
Add igniters and update flight control algorithm
Diffstat (limited to 'ao_log.c')
-rw-r--r-- | ao_log.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -153,9 +153,7 @@ ao_log(void) log.u.deploy.main = ao_adc_ring[ao_log_adc_pos].sense_m; ao_log_data(&log); } - ao_log_adc_pos++; - if (ao_log_adc_pos == AO_ADC_RING) - ao_log_adc_pos = 0; + ao_log_adc_pos = ao_adc_ring_next(ao_log_adc_pos); } /* Wait for a while */ |