Commit 8d7acf62 authored by DonLakeFlyer's avatar DonLakeFlyer

Make compiler happy

parent 59f7a2fc
...@@ -722,7 +722,7 @@ void Vehicle::_handleAutopilotVersion(LinkInterface *link, mavlink_message_t& me ...@@ -722,7 +722,7 @@ void Vehicle::_handleAutopilotVersion(LinkInterface *link, mavlink_message_t& me
} }
// Git hash // Git hash
if (*((uint64_t*)(&autopilotVersion.flight_custom_version)) != 0) { if (*((uint64_t*)(&autopilotVersion.flight_custom_version[0])) != 0) {
// PX4 Firmware stores the first 16 characters of the git hash as binary, with the individual bytes in reverse order // PX4 Firmware stores the first 16 characters of the git hash as binary, with the individual bytes in reverse order
if (px4Firmware()) { if (px4Firmware()) {
// Lower 3 bytes is custom version // Lower 3 bytes is custom version
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment