summaryrefslogtreecommitdiff
path: root/src/kernel/ao_log_mega.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-06-05 17:14:28 -0700
committerKeith Packard <keithp@keithp.com>2014-06-05 17:14:28 -0700
commitb8201bc9ba4a5f5f0522b68493cd5e7f013fd4bb (patch)
tree557decc61dec89a8cc783aba6eb09e1aa8a95885 /src/kernel/ao_log_mega.c
parent3e28d8a242955d65d8cd50dbba4cad4609e2e1ae (diff)
altos: Include sensor logging task only on flight boards
This lets TeleGPS use the logging infrastructure without wasting a task to log sensor data Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/kernel/ao_log_mega.c')
-rw-r--r--src/kernel/ao_log_mega.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/kernel/ao_log_mega.c b/src/kernel/ao_log_mega.c
index 768947d5..8997fd05 100644
--- a/src/kernel/ao_log_mega.c
+++ b/src/kernel/ao_log_mega.c
@@ -65,7 +65,7 @@ ao_log_dump_check_data(void)
return 1;
}
-#if HAS_ADC
+#if HAS_FLIGHT
static __data uint8_t ao_log_data_pos;
/* a hack to make sure that ao_log_megas fill the eeprom block in even units */
@@ -100,9 +100,9 @@ ao_log(void)
log.u.flight.ground_accel_along = ao_ground_accel_along;
log.u.flight.ground_accel_across = ao_ground_accel_across;
log.u.flight.ground_accel_through = ao_ground_accel_through;
+ log.u.flight.ground_roll = ao_ground_roll;
log.u.flight.ground_pitch = ao_ground_pitch;
log.u.flight.ground_yaw = ao_ground_yaw;
- log.u.flight.ground_roll = ao_ground_roll;
#endif
log.u.flight.ground_pres = ao_ground_pres;
log.u.flight.flight = ao_flight_number;
@@ -183,7 +183,7 @@ ao_log(void)
ao_sleep(&ao_log_running);
}
}
-#endif
+#endif /* HAS_FLIGHT */
uint16_t
ao_log_flight(uint8_t slot)