How do you use a constant to size an array event argument #1509
-
My F' instance is interfacing with external code which is the authority on the size of a particular array, and therefore also the size of the telemetry packet used to relate it to ground. I want to do this: <event id="9"
name="MY_ARRAY"
severity="ACTIVITY_HI"
format_string="%s">
<comment>The thing of the jobbler.</comment>
<args>
<arg name="my_array" type="I32" size="MY_ALREADY_DEFINED_ARRAY_LENGTH" />
</args>
</event> ... where When generating the code, however, I get this difficulty:
What is the remedy here? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The XML expects an integer for the size in the attribute, so it fails validation. That explains the error. The XML specification doesn't allow for references to external code, so you'll have to manually keep them in sync. |
Beta Was this translation helpful? Give feedback.
The XML expects an integer for the size in the attribute, so it fails validation. That explains the error. The XML specification doesn't allow for references to external code, so you'll have to manually keep them in sync.