mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-27 14:06:36 +08:00
mavlink messages delete unnecessary timestamps and cleanup
This commit is contained in:
@@ -114,12 +114,7 @@ MavlinkOrbSubscription::update(void *data)
|
||||
return false;
|
||||
}
|
||||
|
||||
if (orb_copy(_topic, _fd, data)) {
|
||||
if (data != nullptr) {
|
||||
/* error copying topic data */
|
||||
memset(data, 0, _topic->o_size);
|
||||
}
|
||||
|
||||
if (orb_copy(_topic, _fd, data) != PX4_OK) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user