GCS_MAVLink: ensure ENABLE_SCRIPTING is always defined

This commit is contained in:
Peter Barker 2021-11-15 12:16:27 +11:00 committed by Peter Barker
parent c090ddc65c
commit fd128066ad

View File

@ -4609,7 +4609,7 @@ MAV_RESULT GCS_MAVLINK::handle_command_int_packet(const mavlink_command_int_t &p
return handle_command_do_set_roi_sysid(packet); return handle_command_do_set_roi_sysid(packet);
case MAV_CMD_DO_SET_HOME: case MAV_CMD_DO_SET_HOME:
return handle_command_int_do_set_home(packet); return handle_command_int_do_set_home(packet);
#ifdef ENABLE_SCRIPTING #if ENABLE_SCRIPTING
case MAV_CMD_SCRIPTING: case MAV_CMD_SCRIPTING:
{ {
AP_Scripting *scripting = AP_Scripting::get_singleton(); AP_Scripting *scripting = AP_Scripting::get_singleton();