mirror of https://github.com/ArduPilot/ardupilot
Copter: log PX4 and NuttX versions in logs
This commit is contained in:
parent
ef57306311
commit
4f2ce31cb7
|
@ -1421,6 +1421,10 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
|
|||
// mark the firmware version in the tlog
|
||||
send_text_P(SEVERITY_LOW, PSTR(FIRMWARE_STRING));
|
||||
|
||||
#if defined(PX4_GIT_VERSION) && defined(NUTTX_GIT_VERSION)
|
||||
send_text_P(SEVERITY_LOW, PSTR("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)) {
|
||||
|
|
|
@ -744,6 +744,10 @@ static void start_logging()
|
|||
in_mavlink_delay = false;
|
||||
DataFlash.Log_Write_Message_P(PSTR(FIRMWARE_STRING));
|
||||
|
||||
#if defined(PX4_GIT_VERSION) && defined(NUTTX_GIT_VERSION)
|
||||
DataFlash.Log_Write_Message_P(PSTR("PX4: " PX4_GIT_VERSION " NuttX: " NUTTX_GIT_VERSION));
|
||||
#endif
|
||||
|
||||
// write system identifier as well if available
|
||||
char sysid[40];
|
||||
if (hal.util->get_system_id(sysid)) {
|
||||
|
|
Loading…
Reference in New Issue