mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-23 06:36:45 +08:00
mavlink messages delete unnecessary timestamps and cleanup
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -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