GCS_MAVLink: remove redundant check in find_next_bucket_to_send

This commit is contained in:
Peter Barker 2018-12-07 10:42:15 +11:00 committed by Randy Mackay
parent e91ee3e54a
commit 57fee7e8ef

View File

@ -1003,8 +1003,7 @@ void GCS_MAVLINK::find_next_bucket_to_send()
} else {
ms_before_send_this_bucket = interval - ms_since_last_sent;
}
if (sending_bucket_id == no_bucket_to_send ||
ms_before_send_this_bucket < ms_before_send_next_bucket_to_send) {
if (ms_before_send_this_bucket < ms_before_send_next_bucket_to_send) {
sending_bucket_id = i;
ms_before_send_next_bucket_to_send = ms_before_send_this_bucket;
}