diff options
author | Keith Packard <keithp@keithp.com> | 2011-03-06 20:56:25 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-03-16 15:57:37 -0700 |
commit | 02611efea0c485d78fad08c696c1f56e868d36b8 (patch) | |
tree | f51ef97cbc62c88a9084c4de05d4446de58e7142 /src/ao_log.c | |
parent | fdd15a254c6fab5ba2d02320ba0ceb3e6a56354c (diff) |
altos: Make serial, usb, beeper and accelerometer optional components
Not all boards will have these, so fix places that use them to deal
with that.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/ao_log.c')
-rw-r--r-- | src/ao_log.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ao_log.c b/src/ao_log.c index 1b10961d..817d3e6f 100644 --- a/src/ao_log.c +++ b/src/ao_log.c @@ -92,7 +92,9 @@ ao_log(void) log.type = AO_LOG_FLIGHT; log.tick = ao_flight_tick; +#if HAS_ACCEL log.u.flight.ground_accel = ao_ground_accel; +#endif log.u.flight.flight = ao_flight_number; ao_log_data(&log); |