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:
Julian Oes
2016-11-23 10:48:17 +01:00
parent f8f12ee265
commit 87f0ec19e4

View File

@@ -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;