mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-25 16:51:16 +08:00
MAVLink stream: Ensure the message is not sent again if it was already dispatched.
This commit is contained in:
1 parent
c84611f0f5
commit
74b0e485e7
1 file changed
+6
@@ -83,6 +83,12 @@ MavlinkStream::update(const hrt_abstime t)
|
||||
return 0;
|
||||
}
|
||||
|
||||
// One of the previous iterations sent the update
|
||||
// already before the deadline
|
||||
if (_last_sent > t) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
int64_t dt = t - _last_sent;
|
||||
int interval = _interval;
|
||||
|
||||
|
||||
Reference in new issue
Block a user