mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 02:18:29 -04:00
ACM Mavlink - fixed comparison of unsigned to signed int by casting to uint8_t
This commit is contained in:
parent
a73bc70553
commit
e8e8c27db4
@ -468,7 +468,7 @@ static void NOINLINE send_statustext(mavlink_channel_t chan)
|
|||||||
static bool telemetry_delayed(mavlink_channel_t chan)
|
static bool telemetry_delayed(mavlink_channel_t chan)
|
||||||
{
|
{
|
||||||
uint32_t tnow = millis() >> 10;
|
uint32_t tnow = millis() >> 10;
|
||||||
if (tnow > g.telem_delay) {
|
if (tnow > (uint8_t)g.telem_delay) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
#if USB_MUX_PIN > 0
|
#if USB_MUX_PIN > 0
|
||||||
|
Loading…
Reference in New Issue
Block a user