X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fdrivers%2Fao_lco.c;h=eb7d131f0076d3b0dcccb8b02ae3a653a002d0c4;hb=4963fb67d7b45f2269f837dd2fe52c41a89d16ed;hp=47752f1f11647ee79f77ac133345b3faedf8c417;hpb=38fb80e5e6af87f8c734448e4aa69b2c39854903;p=fw%2Faltos diff --git a/src/drivers/ao_lco.c b/src/drivers/ao_lco.c index 47752f1f..eb7d131f 100644 --- a/src/drivers/ao_lco.c +++ b/src/drivers/ao_lco.c @@ -34,8 +34,7 @@ #define AO_LCO_DRAG_RACE_START_TIME AO_SEC_TO_TICKS(5) #define AO_LCO_DRAG_RACE_STOP_TIME AO_SEC_TO_TICKS(2) -#define AO_LCO_VALID_LAST 1 -#define AO_LCO_VALID_EVER 2 +#define AO_LCO_BOX_DRAG 0x1000 /* UI values */ static uint16_t ao_lco_fire_tick; @@ -218,7 +217,7 @@ ao_lco_input(void) for (;;) { ao_event_get(&event); - PRINTD("event type %d unit %d value %d\n", + PRINTD("event type %d unit %d value %ld\n", event.type, event.unit, event.value); switch (event.type) { case AO_EVENT_QUADRATURE: