Skip to content

Commit

Permalink
Mark tlmWrite argument const for user types
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua-Anderson committed Jun 17, 2021
1 parent c74a4b2 commit bad16b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,7 @@ namespace ${namespace} {
tlmWrite_${tlmname}(${type} arg)
#else
#if $typeinfo == "user":
tlmWrite_${tlmname}(${type}& arg)
tlmWrite_${tlmname}(const ${type}& arg)
#else
tlmWrite_${tlmname}(${type} arg)
#end if
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,7 @@ $emit_non_port_params(8, $params)
#else:
#if $typeinfo == "user":
void tlmWrite_${name}(
${type}& arg $doxygen_post_comment("The telemetry value")
const ${type}& arg $doxygen_post_comment("The telemetry value")
);
#else:
void tlmWrite_${name}(
Expand Down

0 comments on commit bad16b0

Please sign in to comment.