From 901a5326a4f452d6ebf3b8569899a3d6893245b1 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 24 Nov 2012 20:39:35 +1100 Subject: [PATCH] Copter: fixed build error thanks to Marco for pointing this out --- ArduCopter/ArduCopter.pde | 1 + ArduCopter/GCS_Mavlink.pde | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ArduCopter/ArduCopter.pde b/ArduCopter/ArduCopter.pde index 6230e9e735..98cb0aba88 100644 --- a/ArduCopter/ArduCopter.pde +++ b/ArduCopter/ArduCopter.pde @@ -58,6 +58,7 @@ #include #include #include +#include #include // Libraries diff --git a/ArduCopter/GCS_Mavlink.pde b/ArduCopter/GCS_Mavlink.pde index cef97ed2e6..b4eece2389 100644 --- a/ArduCopter/GCS_Mavlink.pde +++ b/ArduCopter/GCS_Mavlink.pde @@ -1060,7 +1060,7 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg) mavlink_msg_command_long_decode(msg, &packet); if (mavlink_check_target(packet.target_system, packet.target_component)) break; - uint8_t result; + uint8_t result = MAV_RESULT_UNSUPPORTED; // do command send_text(SEVERITY_LOW,PSTR("command received: "));