mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
GCS_MAVLink: initialise last_sent_ms when reusing bucket
This commit is contained in:
parent
09905bb2f2
commit
e08a8d03d2
@ -1341,6 +1341,7 @@ bool GCS_MAVLINK::set_ap_message_interval(enum ap_message id, uint16_t interval_
|
||||
closest_bucket_interval_delta = 0;
|
||||
} else if (deferred_message_bucket[closest_bucket].ap_message_ids.count() == 0) {
|
||||
deferred_message_bucket[closest_bucket].interval_ms = interval_ms;
|
||||
deferred_message_bucket[closest_bucket].last_sent_ms = AP_HAL::millis16();
|
||||
}
|
||||
|
||||
deferred_message_bucket[closest_bucket].ap_message_ids.set(id);
|
||||
|
Loading…
Reference in New Issue
Block a user