mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
mavlink: copy chars of git hash instead of binary
I could not figure out how to make sense out of the binary git data. Therefore, I replaced the px4_git_version_binary with the first 8 bytes of px4_git_version (char[]) and this is easily readable when it arrives on the other side.
This commit is contained in:
@@ -1279,8 +1279,8 @@ void Mavlink::send_autopilot_capabilites()
|
||||
msg.middleware_sw_version = version_tag_to_number(px4_git_tag);
|
||||
msg.os_sw_version = version_tag_to_number(os_git_tag);
|
||||
msg.board_version = px4_board_version;
|
||||
memcpy(&msg.flight_custom_version, &px4_git_version_binary, sizeof(msg.flight_custom_version));
|
||||
memcpy(&msg.middleware_custom_version, &px4_git_version_binary, sizeof(msg.middleware_custom_version));
|
||||
memcpy(&msg.flight_custom_version, px4_git_version, sizeof(msg.flight_custom_version));
|
||||
memcpy(&msg.middleware_custom_version, px4_git_version, sizeof(msg.middleware_custom_version));
|
||||
memset(&msg.os_custom_version, 0, sizeof(msg.os_custom_version));
|
||||
#ifdef CONFIG_CDCACM_VENDORID
|
||||
msg.vendor_id = CONFIG_CDCACM_VENDORID;
|
||||
|
||||
Reference in New Issue
Block a user