GCS: force scalar type in copy_name()

this enables access to compass offsets over MAVLink
This commit is contained in:
Andrew Tridgell 2012-02-24 17:23:08 +11:00
parent 007a6b8958
commit 17718720b1
2 changed files with 2 additions and 2 deletions

View File

@ -1647,7 +1647,7 @@ GCS_MAVLINK::queued_param_send()
value = vp->cast_to_float(_queued_parameter_type);
char param_name[ONBOARD_PARAM_NAME_LENGTH];
vp->copy_name(param_name, sizeof(param_name));
vp->copy_name(param_name, sizeof(param_name), true);
mavlink_msg_param_value_send(
chan,

View File

@ -2000,7 +2000,7 @@ GCS_MAVLINK::queued_param_send()
value = vp->cast_to_float(_queued_parameter_type);
char param_name[ONBOARD_PARAM_NAME_LENGTH];
vp->copy_name(param_name, sizeof(param_name));
vp->copy_name(param_name, sizeof(param_name), true);
mavlink_msg_param_value_send(
chan,