projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos: Fix printf format mis-matches
[fw/altos]
/
src
/
drivers
/
ao_lco.c
diff --git
a/src/drivers/ao_lco.c
b/src/drivers/ao_lco.c
index 0d7e4cba2debfca344168ccad24065cb4a94cbb1..2cb885cfc336996f7b5a3e56e4686ed48ed26c8a 100644
(file)
--- a/
src/drivers/ao_lco.c
+++ b/
src/drivers/ao_lco.c
@@
-163,8
+163,8
@@
ao_lco_drag_monitor(void)
ao_beep_for(AO_BEEP_MID, AO_MS_TO_TICKS(200));
for (;;) {
ao_beep_for(AO_BEEP_MID, AO_MS_TO_TICKS(200));
for (;;) {
- PRINTD("Drag monitor count %d active %d delay %
d
\n",
- ao_lco_drag_beep_count, ao_lco_drag_active, delay);
+ PRINTD("Drag monitor count %d active %d delay %
lu
\n",
+ ao_lco_drag_beep_count, ao_lco_drag_active,
(unsigned long)
delay);
if (delay == (AO_TICK_TYPE) ~0)
ao_sleep(&ao_lco_drag_beep_count);
else
if (delay == (AO_TICK_TYPE) ~0)
ao_sleep(&ao_lco_drag_beep_count);
else
@@
-217,8
+217,8
@@
ao_lco_input(void)
for (;;) {
ao_event_get(&event);
for (;;) {
ao_event_get(&event);
- PRINTD("event type %d unit %d value %d\n",
- event.type, event.unit, event.value);
+ PRINTD("event type %d unit %d value %
l
d\n",
+ event.type, event.unit,
(long)
event.value);
switch (event.type) {
case AO_EVENT_QUADRATURE:
switch (event.unit) {
switch (event.type) {
case AO_EVENT_QUADRATURE:
switch (event.unit) {