summaryrefslogtreecommitdiff
path: root/ao_log.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2009-04-21 01:17:03 -0700
committerKeith Packard <keithp@keithp.com>2009-04-21 01:17:03 -0700
commitd1887ded41a5bfec8e10e9fd736fa9444b9b6222 (patch)
tree936c2e251c195d80e13a0754931ba188fbf7e5ad /ao_log.c
parent43c8f7012102cdb591ace899420c10e4a78385ad (diff)
Fix up fancy dbg stuff. Add teleterra initial bits.
The dbg stuff needed a bit of help to actually walk the tables; it appears that complex expressions confuse sdcc. This also adds primitive teleterra bits, but no UI, etc. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ao_log.c')
-rw-r--r--ao_log.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ao_log.c b/ao_log.c
index d7ff5c82..1b473c14 100644
--- a/ao_log.c
+++ b/ao_log.c
@@ -141,7 +141,7 @@ ao_log(void)
log.u.sensor.accel = ao_adc_ring[ao_log_adc_pos].accel;
log.u.sensor.pres = ao_adc_ring[ao_log_adc_pos].pres;
ao_log_data(&log);
- if (ao_log_adc_pos == 0) {
+ if ((ao_log_adc_pos & 0x1f) == 0) {
log.type = AO_LOG_TEMP_VOLT;
log.tick = ao_adc_ring[ao_log_adc_pos].tick;
log.u.temp_volt.temp = ao_adc_ring[ao_log_adc_pos].temp;
@@ -193,7 +193,7 @@ dump_log(void)
}
__code struct ao_cmds ao_log_cmds[] = {
- { 'l', dump_log, "l Dump last flight log\n" },
+ { 'l', dump_log, "l Dump last flight log" },
{ 0, dump_log, NULL },
};