Copter: fix compiler error when mount disabled

This commit is contained in:
Randy Mackay 2015-03-21 21:02:06 +09:00
parent a3933f7a1f
commit b4df5b35f0
2 changed files with 4 additions and 0 deletions

View File

@ -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;
}

View File

@ -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