ao_event_get(&event);
}
ao_lco_wakeup();
- PRINTD("event type %d unit %d value %d\n",
- event.type, event.unit, event.value);
+ PRINTD("event type %d unit %d value %ld\n",
+ event.type, event.unit, (long) event.value);
switch (event.type) {
case AO_EVENT_BUTTON:
switch (event.unit) {
}
#if DEBUG
-void
+static void
ao_lco_set_debug(void)
{
- ao_cmd_decimal();
+ uint16_t r = ao_cmd_decimal();
if (ao_cmd_status == ao_cmd_success)
- ao_lco_debug = ao_cmd_lex_i;
+ ao_lco_debug = r;
}
const struct ao_cmds ao_lco_cmds[] = {