From e8e8c27db44c235e738a1e32b00c2ace6174dba9 Mon Sep 17 00:00:00 2001 From: Jason Short Date: Mon, 10 Sep 2012 20:22:57 -0700 Subject: [PATCH] ACM Mavlink - fixed comparison of unsigned to signed int by casting to uint8_t --- ArduCopter/GCS_Mavlink.pde | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduCopter/GCS_Mavlink.pde b/ArduCopter/GCS_Mavlink.pde index 0871659823..e9eeedcffd 100644 --- a/ArduCopter/GCS_Mavlink.pde +++ b/ArduCopter/GCS_Mavlink.pde @@ -468,7 +468,7 @@ static void NOINLINE send_statustext(mavlink_channel_t chan) static bool telemetry_delayed(mavlink_channel_t chan) { uint32_t tnow = millis() >> 10; - if (tnow > g.telem_delay) { + if (tnow > (uint8_t)g.telem_delay) { return false; } #if USB_MUX_PIN > 0