mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-17 17:20:36 +08:00
mavlink: remove unused strncpy (#18300)
This commit is contained in:
@@ -375,8 +375,6 @@ MavlinkParametersManager::send_untransmitted()
|
||||
// space in the TX buffer
|
||||
if ((param != PARAM_INVALID) && param_value_unsaved(param)) {
|
||||
int ret = send_param(param);
|
||||
char buf[100];
|
||||
strncpy(&buf[0], param_name(param), MAVLINK_MSG_PARAM_VALUE_FIELD_PARAM_ID_LEN);
|
||||
sent_one = true;
|
||||
|
||||
if (ret != PX4_OK) {
|
||||
|
||||
Reference in New Issue
Block a user