summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2018-12-30 13:42:50 -0800
committerKeith Packard <keithp@keithp.com>2018-12-30 14:17:27 -0800
commit4fb00afc9018c6179c4aff897fcbb330588d02a2 (patch)
tree434b2e3ec46d0bd94a4ebed2735e4684e93973b1
parent84c04a114898d97a13f61e1006949dc3926eeba1 (diff)
altos: Make HAS_ACCEL_DEBUG build again
Need to not use ao_error_h_sq_avg without HAS_ACCEL Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--src/kernel/ao_flight.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/kernel/ao_flight.c b/src/kernel/ao_flight.c
index f72efa06..5a5d5b72 100644
--- a/src/kernel/ao_flight.c
+++ b/src/kernel/ao_flight.c
@@ -444,7 +444,9 @@ ao_flight_dump(void)
printf (" max_height %d\n", ao_max_height);
printf (" avg_height %d\n", ao_avg_height);
printf (" error_h %d\n", ao_error_h);
+#if !HAS_ACCEL
printf (" error_avg %d\n", ao_error_h_sq_avg);
+#endif
}
static void