diff --git a/src/Vehicle/Vehicle.cc b/src/Vehicle/Vehicle.cc index c3e0761cecbe21706aadb1f36fd607dbc0dbb6a2..199893ddb992f7ecc0a6b26e2d02059c458805ff 100644 --- a/src/Vehicle/Vehicle.cc +++ b/src/Vehicle/Vehicle.cc @@ -722,7 +722,7 @@ void Vehicle::_handleAutopilotVersion(LinkInterface *link, mavlink_message_t& me } // 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 if (px4Firmware()) { // Lower 3 bytes is custom version