mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-29 20:18:31 -04:00
Sub: move handling of do_send_banner up
This commit is contained in:
parent
3f67dfe4fe
commit
1928dcb784
@ -1244,24 +1244,6 @@ void GCS_MAVLINK_Sub::handleMessage(mavlink_message_t* msg)
|
|||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
case MAV_CMD_DO_SEND_BANNER: {
|
|
||||||
result = MAV_RESULT_ACCEPTED;
|
|
||||||
|
|
||||||
send_text(MAV_SEVERITY_INFO, fwver.fw_string);
|
|
||||||
|
|
||||||
#if defined(PX4_GIT_VERSION) && defined(NUTTX_GIT_VERSION)
|
|
||||||
send_text(MAV_SEVERITY_INFO, "PX4: " PX4_GIT_VERSION " NuttX: " NUTTX_GIT_VERSION);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// send system ID if we can
|
|
||||||
char sysid[40];
|
|
||||||
if (hal.util->get_system_id(sysid)) {
|
|
||||||
send_text(MAV_SEVERITY_INFO, sysid);
|
|
||||||
}
|
|
||||||
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
result = handle_command_long_message(packet);
|
result = handle_command_long_message(packet);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user