projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
84c04a1
)
altos: Make HAS_ACCEL_DEBUG build again
author
Keith Packard
<keithp@keithp.com>
Sun, 30 Dec 2018 21:42:50 +0000
(13:42 -0800)
committer
Keith 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
patch
|
blob
|
history
diff --git
a/src/kernel/ao_flight.c
b/src/kernel/ao_flight.c
index f72efa068b8bc506305b73471c895c3f5a9564c9..5a5d5b72b0adfb887f238d6512c5b91b68b8a016 100644
(file)
--- 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