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