GCS_MAVLink: rename confusingly-named method

This commit is contained in:
Peter Barker 2018-12-07 10:35:46 +11:00 committed by Randy Mackay
parent b696986de6
commit e91ee3e54a
2 changed files with 4 additions and 4 deletions

View File

@ -503,7 +503,7 @@ private:
uint8_t sending_bucket_id = no_bucket_to_send;
Bitmask bucket_message_ids_to_send{MSG_LAST};
ap_message next_deferred_message_to_send();
ap_message next_deferred_bucket_message_to_send();
void find_next_bucket_to_send();
void remove_message_from_bucket(int8_t bucket, ap_message id);

View File

@ -1024,7 +1024,7 @@ void GCS_MAVLINK::find_next_bucket_to_send()
#endif
}
ap_message GCS_MAVLINK::next_deferred_message_to_send()
ap_message GCS_MAVLINK::next_deferred_bucket_message_to_send()
{
if (sending_bucket_id == no_bucket_to_send) {
// could happen if all streamrates are zero?
@ -1042,7 +1042,7 @@ ap_message GCS_MAVLINK::next_deferred_message_to_send()
if (next == -1) {
// should not happen
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
AP_HAL::panic("next_deferred_message_to_send called on empty bucket");
AP_HAL::panic("next_deferred_bucket_message_to_send called on empty bucket");
#endif
find_next_bucket_to_send();
return no_message_to_send;
@ -1197,7 +1197,7 @@ void GCS_MAVLINK::update_send()
continue;
}
next = next_deferred_message_to_send();
next = next_deferred_bucket_message_to_send();
if (next != no_message_to_send) {
if (!do_try_send_message(next)) {
break;