mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 23:33:34 +08: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