mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-06 19:00:27 +08:00
GCS_MAVLink: set message interval fail msg only sent on SITL
This commit is contained in:
committed by
Peter Barker
parent
0272c097e2
commit
6d1917cf5a
@@ -3135,7 +3135,9 @@ MAV_RESULT GCS_MAVLINK::set_message_interval(uint32_t msg_id, int32_t interval_u
|
||||
{
|
||||
const ap_message id = mavlink_id_to_ap_message_id(msg_id);
|
||||
if (id == MSG_LAST) {
|
||||
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
||||
GCS_SEND_TEXT(MAV_SEVERITY_INFO, "No ap_message for mavlink id (%u)", (unsigned int)msg_id);
|
||||
#endif // CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
||||
return MAV_RESULT_DENIED;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user