mirror of https://github.com/ArduPilot/ardupilot
Plane: disable camera logging when camera support disabled
This commit is contained in:
parent
f6e98ff8ef
commit
2a30b1862b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue