X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fdrivers%2Fao_lco.h;h=452092a092df80a4aa940e27f3b623977b5a1020;hb=8a830c7f9ed41565c72edb85852e2df8bfa351f5;hp=cdc19d3d76837a7d7627d5dd250eb431005733cf;hpb=684741765117611b7d666efbdfafd87c6199752c;p=fw%2Faltos diff --git a/src/drivers/ao_lco.h b/src/drivers/ao_lco.h index cdc19d3d..452092a0 100644 --- a/src/drivers/ao_lco.h +++ b/src/drivers/ao_lco.h @@ -29,7 +29,7 @@ #if DEBUG extern uint8_t ao_lco_debug; -#define PRINTD(...) do { if (!ao_lco_debug) break; printf ("\r%5u %s: ", ao_tick_count, __func__); printf(__VA_ARGS__); flush(); } while(0) +#define PRINTD(...) do { if (!ao_lco_debug) break; printf ("\r%5lu %s: ", (unsigned long) ao_tick_count, __func__); printf(__VA_ARGS__); flush(); } while(0) #else #define PRINTD(...) #endif @@ -107,12 +107,12 @@ void ao_lco_drag_disable(void); /* Handle drag beeps, return new delay */ -uint16_t -ao_lco_drag_beep_check(uint16_t now, uint16_t delay); +AO_TICK_TYPE +ao_lco_drag_beep_check(AO_TICK_TYPE now, AO_TICK_TYPE delay); /* Check if it's time to beep during drag race. Return new delay */ -uint16_t -ao_lco_drag_warn_check(uint16_t now, uint16_t delay); +AO_TICK_TYPE +ao_lco_drag_warn_check(AO_TICK_TYPE now, AO_TICK_TYPE delay); /* Request 'beeps' additional drag race beeps */ void