From 2a30b1862b0aba2387784bd4c52dc77a071ce058 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 30 Jul 2015 12:17:48 +1000 Subject: [PATCH] Plane: disable camera logging when camera support disabled --- ArduPlane/commands_logic.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ArduPlane/commands_logic.cpp b/ArduPlane/commands_logic.cpp index 4aac5ecfcb..dec17faf59 100644 --- a/ArduPlane/commands_logic.cpp +++ b/ArduPlane/commands_logic.cpp @@ -831,10 +831,12 @@ void Plane::do_take_picture() // log_picture - log picture taken and send feedback to GCS void Plane::log_picture() { +#if CAMERA == ENABLED gcs_send_message(MSG_CAMERA_FEEDBACK); if (should_log(MASK_LOG_CAMERA)) { DataFlash.Log_Write_Camera(ahrs, gps, current_loc); } +#endif } // start_command_callback - callback function called from ap-mission when it begins a new mission command