Skip to content

Commit

Permalink
sys_status: Fix #1151 bug - incorrect hex print
Browse files Browse the repository at this point in the history
  • Loading branch information
vooon committed Jan 3, 2019
1 parent 2655eac commit bdc8ab1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mavros/src/plugins/sys_status.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -581,9 +581,9 @@ class SystemStatusPlugin : public plugin::PluginBase
// should be little-endian
uint64_t b;
memcpy(&b, array.data(), sizeof(uint64_t));
b = le16toh(b);
b = le64toh(b);

return utils::format("%016X", b);
return utils::format("%016llx", b);
}

void process_autopilot_version_normal(mavlink::common::msg::AUTOPILOT_VERSION &apv, uint8_t sysid, uint8_t compid)
Expand Down

0 comments on commit bdc8ab1

Please sign in to comment.