mirror of https://github.com/ArduPilot/ardupilot
GCS_MAVLink: refactor send_banner() to use AP_FWVersion
This commit is contained in:
parent
ed2b8d3476
commit
ec935cf0fe
|
@ -2005,9 +2005,10 @@ void GCS_MAVLINK::send_banner()
|
||||||
const AP_FWVersion &fwver = get_fwver();
|
const AP_FWVersion &fwver = get_fwver();
|
||||||
send_text(MAV_SEVERITY_INFO, fwver.fw_string);
|
send_text(MAV_SEVERITY_INFO, fwver.fw_string);
|
||||||
|
|
||||||
#if defined(PX4_GIT_VERSION) && defined(NUTTX_GIT_VERSION)
|
if (fwver.middleware_hash_str && fwver.os_hash_str) {
|
||||||
send_text(MAV_SEVERITY_INFO, "PX4: " PX4_GIT_VERSION " NuttX: " NUTTX_GIT_VERSION);
|
send_text(MAV_SEVERITY_INFO, "PX4: %s NuttX: %s",
|
||||||
#endif
|
fwver.middleware_hash_str, fwver.os_hash_str);
|
||||||
|
}
|
||||||
|
|
||||||
// send system ID if we can
|
// send system ID if we can
|
||||||
char sysid[40];
|
char sysid[40];
|
||||||
|
|
Loading…
Reference in New Issue