mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 00:23:34 +08:00
logging: allow logging backend config
* logging: allow logging backend config * correct board comments * documentation: updated logging section
This commit is contained in:
@@ -150,5 +150,18 @@ param_modify_on_import_ret param_modify_on_import(bson_node_t node)
|
||||
}
|
||||
}
|
||||
|
||||
// 2025-08-22: translate SDLOG_MODE (disabled) to SDLOG_BACKEND (no logging backend)
|
||||
{
|
||||
if (strcmp("SDLOG_MODE", node->name) == 0) {
|
||||
if (node->i32 == -1) {
|
||||
node->i32 = 0;
|
||||
|
||||
int32_t sdlog_backend_val = 0;
|
||||
param_set(param_find("SDLOG_BACKEND"), &sdlog_backend_val);
|
||||
PX4_INFO("migrating %s -> %s", "SDLOG_MODE", "SDLOG_BACKEND");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return param_modify_on_import_ret::PARAM_NOT_MODIFIED;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user