module_schema: enforce serial config param names to end in _CONFIG or _CFG

For consistency & documentation
This commit is contained in:
Beat Küng 2018-09-27 11:03:59 +02:00 committed by Lorenz Meier
parent a346619623
commit 4c90d2c025
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ serial_config:
name:
# Parameter name (e.g. TEL_FRSKY_CONFIG, MAV_${i}_CONFIG)
type: string
regex: '[0-9A-Z_]+(\$\{i\}[0-9A-Z_]*)?'
regex: '[0-9A-Z_]+(\$\{i\}[0-9A-Z_]*)?_(CONFIG|CFG)'
required: true
group:
# Associated parameter group (e.g. GPS)