mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-27 11:08:29 -04:00
GCS_MAVLink: remove redundant check in find_next_bucket_to_send
This commit is contained in:
parent
e91ee3e54a
commit
57fee7e8ef
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user