mavlink messages delete unnecessary timestamps and cleanup

This commit is contained in:
Daniel Agar
2018-03-25 14:21:09 -04:00
parent c181501e27
commit 3db287ba67
2 changed files with 278 additions and 258 deletions
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;
}