mirror of https://github.com/ArduPilot/ardupilot
Copter: fix compiler error when mount disabled
This commit is contained in:
parent
a3933f7a1f
commit
b4df5b35f0
|
@ -981,7 +981,9 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
|
|||
|
||||
case MAVLINK_MSG_ID_GIMBAL_REPORT:
|
||||
{
|
||||
#if MOUNT == ENABLED
|
||||
handle_gimbal_report(camera_mount, msg);
|
||||
#endif
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
@ -191,8 +191,10 @@ static void init_ardupilot()
|
|||
// init the optical flow sensor
|
||||
init_optflow();
|
||||
|
||||
#if MOUNT == ENABLED
|
||||
// initialise camera mount
|
||||
camera_mount.init(serial_manager);
|
||||
#endif
|
||||
|
||||
#ifdef USERHOOK_INIT
|
||||
USERHOOK_INIT
|
||||
|
|
Loading…
Reference in New Issue