From 8d7acf62cf3ae537b4e174acb748dd6b5814eb01 Mon Sep 17 00:00:00 2001 From: DonLakeFlyer Date: Sat, 13 May 2017 11:44:47 -0700 Subject: [PATCH] Make compiler happy --- src/Vehicle/Vehicle.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Vehicle/Vehicle.cc b/src/Vehicle/Vehicle.cc index c3e0761ce..199893ddb 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 -- 2.22.0