fix(params): honor reboot_required: false in the parameter metadata (#29517)

The generator copied the yaml value into the tag, so false became
"@reboot_required False", and the metadata parsers treat any value as
set. QGC prompted for a reboot after changes to 35 parameters that
apply live, among them the gyro filters, log rotation and ADSB squawk.
Emit flag tags only when true. volatile had the same flaw, though no
parameter sets it false yet.

Assisted-by: Claude:claude-opus-5-5

Signed-off-by: Jacob Dahl <dahl.jakejacob@gmail.com>
(cherry picked from commit 4bf3a5bd51)
This commit is contained in:
Jacob Dahl committed 2026-10-31 08:26:58 -08:00
1 parent d094eda019
commit 75c4fe91f2
1 file changed
+7 -2
+7 -2
View File
@@ -130,11 +130,16 @@ def parse_yaml_parameters_config(yaml_config, ethernet_supported):
else:
raise Exception("unknown param type {:}".format(param['type']))
for tag in ['decimal', 'increment', 'category', 'volatile',
'min', 'max', 'unit', 'reboot_required']:
for tag in ['decimal', 'increment', 'category',
'min', 'max', 'unit']:
if tag in param:
tags += '\n * @{:} {:}'.format(tag, param[tag])
# The metadata parsers treat any flag tag as set, whatever its value
for tag in ['volatile', 'reboot_required']:
if param.get(tag, False):
tags += '\n * @{:} true'.format(tag)
for i in range(num_instances):
# default value
default_value = 0