mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-05 22:24:47 +08:00
logger: use better variable names for chip name description
This commit is contained in:
@@ -1390,12 +1390,12 @@ void Logger::write_version()
|
|||||||
write_info("sys_toolchain", px4_toolchain_name());
|
write_info("sys_toolchain", px4_toolchain_name());
|
||||||
write_info("sys_toolchain_ver", px4_toolchain_version());
|
write_info("sys_toolchain_ver", px4_toolchain_version());
|
||||||
|
|
||||||
char rev;
|
char revision;
|
||||||
char *revstr;
|
char *chip_name;
|
||||||
|
|
||||||
if (mcu_version(&rev, &revstr) >= 0) {
|
if (mcu_version(&revision, &chip_name) >= 0) {
|
||||||
char mcu_ver[64];
|
char mcu_ver[64];
|
||||||
snprintf(mcu_ver, sizeof(mcu_ver), "%s, rev. %c", revstr, rev);
|
snprintf(mcu_ver, sizeof(mcu_ver), "%s, rev. %c", chip_name, revision);
|
||||||
write_info("sys_mcu", mcu_ver);
|
write_info("sys_mcu", mcu_ver);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ PARAM_DEFINE_INT32(SDLOG_MODE, 0);
|
|||||||
/**
|
/**
|
||||||
* Log UUID
|
* Log UUID
|
||||||
*
|
*
|
||||||
* If set, add an ID to the log, which uniquely identifies the vehicle
|
* If set to 1, add an ID to the log, which uniquely identifies the vehicle
|
||||||
*
|
*
|
||||||
* @boolean
|
* @boolean
|
||||||
* @group SD Logging
|
* @group SD Logging
|
||||||
|
|||||||
Reference in New Issue
Block a user