forked from Archive/PX4-Autopilot
parameter source parser: validate length of parameter name (limited to 16)
This commit is contained in:
parent
97bcea292e
commit
6a07d61671
|
@ -284,6 +284,9 @@ class SourceParser(object):
|
|||
for group in self.GetParamGroups():
|
||||
for param in group.GetParams():
|
||||
name = param.GetName()
|
||||
if len(name) > 16:
|
||||
sys.stderr.write("Parameter Name {0} is too long (Limit is 16)\n".format(name))
|
||||
return False
|
||||
board = param.GetFieldValue("board")
|
||||
# Check for duplicates
|
||||
name_plus_board = name + "+" + board
|
||||
|
|
Loading…
Reference in New Issue