mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
fix logger: remove space in format for changed parameters
This commit is contained in:
parent
a455962e17
commit
c94fe845ec
@ -1249,7 +1249,7 @@ void Logger::write_changed_parameters()
|
||||
}
|
||||
|
||||
/* format parameter key (type and name) */
|
||||
msg->key_len = snprintf(msg->key, sizeof(msg->key), "%s %s ", type_str, param_name(param));
|
||||
msg->key_len = snprintf(msg->key, sizeof(msg->key), "%s %s", type_str, param_name(param));
|
||||
size_t msg_size = sizeof(*msg) - sizeof(msg->key) + msg->key_len;
|
||||
|
||||
/* copy parameter value directly to buffer */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user