From a3e44b32499f76ad7471d340150fa8252954380a Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 27 Jun 2018 17:57:44 +1000 Subject: [PATCH] GCS_MAVLink: fix from review comment thanks Pierre --- libraries/GCS_MAVLink/GCS_Common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/GCS_MAVLink/GCS_Common.cpp b/libraries/GCS_MAVLink/GCS_Common.cpp index 43291fbd38..e003786c41 100644 --- a/libraries/GCS_MAVLink/GCS_Common.cpp +++ b/libraries/GCS_MAVLink/GCS_Common.cpp @@ -2458,7 +2458,7 @@ void GCS_MAVLINK::send_simstate() const MAV_RESULT GCS_MAVLINK::handle_command_flash_bootloader(const mavlink_command_long_t &packet) { - if (int(packet.param5) != 290876) { + if (uint32_t(packet.param5) != 290876) { gcs().send_text(MAV_SEVERITY_INFO, "Magic not set"); return MAV_RESULT_FAILED; }