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 f72efa0..5a5d5b7 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