altos: Make HAS_ACCEL_DEBUG build again
authorKeith Packard <keithp@keithp.com>
Sun, 30 Dec 2018 21:42:50 +0000 (13:42 -0800)
committerKeith Packard <keithp@keithp.com>
Sun, 30 Dec 2018 22:17:27 +0000 (14:17 -0800)
Need to not use ao_error_h_sq_avg without HAS_ACCEL

Signed-off-by: Keith Packard <keithp@keithp.com>
src/kernel/ao_flight.c

index f72efa068b8bc506305b73471c895c3f5a9564c9..5a5d5b72b0adfb887f238d6512c5b91b68b8a016 100644 (file)
@@ -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