mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
Update timestamp for last sent message im mavlink stream only if the message was sent
This commit is contained in:
@@ -79,9 +79,11 @@ MavlinkStream::update(const hrt_abstime t)
|
||||
// this will give different messages on the same run a different
|
||||
// initial timestamp which will help spacing them out
|
||||
// on the link scheduling
|
||||
_last_sent = hrt_absolute_time();
|
||||
#ifndef __PX4_QURT
|
||||
(void)send(t);
|
||||
if (send(t)) {
|
||||
_last_sent = hrt_absolute_time();
|
||||
}
|
||||
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user