forked from Archive/PX4-Autopilot
module.yaml: make long param description optional
Some params are very simple and don't need more.
This commit is contained in:
parent
1b7f4b6003
commit
6537f480b1
|
@ -145,7 +145,7 @@ def parse_yaml_parameters_config(yaml_config, ethernet_supported):
|
|||
*/
|
||||
PARAM_DEFINE_{param_type}({name}, {default_value});
|
||||
'''.format(short_descr=param['description']['short'].replace("\n", "\n * "),
|
||||
long_descr=param['description']['long'].replace("\n", "\n * "),
|
||||
long_descr=param['description'].get('long', "").replace("\n", "\n * "),
|
||||
tags=tags,
|
||||
param_type=param_type,
|
||||
name=param_name.replace('${i}', str(i+instance_start)),
|
||||
|
|
|
@ -118,7 +118,7 @@ parameters:
|
|||
long:
|
||||
# Long description (can be multiple lines)
|
||||
type: string
|
||||
required: true
|
||||
required: false
|
||||
|
||||
type:
|
||||
# Define the parameter type
|
||||
|
|
Loading…
Reference in New Issue