mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 09:28:58 +00:00
logger: avoid logging the UUID if the system does not provide it
The linux targets don't have it and setting a fixed constant causes wrong vehicle associationss in Flight Review.
This commit is contained in:
@@ -1674,6 +1674,7 @@ void Logger::write_version()
|
||||
write_info("sys_mcu", mcu_ver);
|
||||
}
|
||||
|
||||
#ifndef BOARD_HAS_NO_UUID
|
||||
/* write the UUID if enabled */
|
||||
param_t write_uuid_param = param_find("SDLOG_UUID");
|
||||
|
||||
@@ -1687,6 +1688,7 @@ void Logger::write_version()
|
||||
write_info("sys_uuid", uuid_string);
|
||||
}
|
||||
}
|
||||
#endif /* BOARD_HAS_NO_UUID */
|
||||
|
||||
int32_t utc_offset = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user