GCS_MAVLink: avoid squashing close-together intervals into same bucket

This commit is contained in:
Peter Barker 2018-12-07 09:52:40 +11:00 committed by Randy Mackay
parent e198b0c7e6
commit c70fec305c

View File

@ -1332,7 +1332,7 @@ bool GCS_MAVLINK::set_ap_message_interval(enum ap_message id, uint16_t interval_
return false;
}
if (closest_bucket_interval_delta > 5 &&
if (closest_bucket_interval_delta != 0 &&
empty_bucket_id != -1) {
// allocate a bucket for this interval
deferred_message_bucket[empty_bucket_id].interval_ms = interval_ms;