Sub: move handling of do_send_banner up

This commit is contained in:
Peter Barker 2017-08-26 21:34:49 +10:00 committed by Francisco Ferreira
parent 3f67dfe4fe
commit 1928dcb784
1 changed files with 0 additions and 18 deletions

View File

@ -1244,24 +1244,6 @@ void GCS_MAVLINK_Sub::handleMessage(mavlink_message_t* msg)
break;
#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:
result = handle_command_long_message(packet);
break;