Skip to content
Snippets Groups Projects
Commit 87f0ec19 authored by Julian Oes's avatar Julian Oes
Browse files

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.
parent f8f12ee2
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment