mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-25 00:30:50 +08:00
logger: use better variable names for chip name description
This commit is contained in:
1 parent
66a6ce880c
commit
3d0f1e4a4f
2 files changed
+5
-5
No files matched your search
@@ -1390,12 +1390,12 @@ void Logger::write_version()
|
||||
write_info("sys_toolchain", px4_toolchain_name());
|
||||
write_info("sys_toolchain_ver", px4_toolchain_version());
|
||||
|
||||
char rev;
|
||||
char *revstr;
|
||||
char revision;
|
||||
char *chip_name;
|
||||
|
||||
if (mcu_version(&rev, &revstr) >= 0) {
|
||||
if (mcu_version(&revision, &chip_name) >= 0) {
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user