mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 01:23:33 +08:00
param jsonout: handle @boolean flag
This got lost when switching from xml to json metadata
This commit is contained in:
@@ -93,6 +93,11 @@ class JsonOutput():
|
||||
code_dict['description']=param.GetEnumValue(item)
|
||||
codes_list.append(code_dict)
|
||||
curr_param['values'] = codes_list
|
||||
elif param.GetBoolean():
|
||||
curr_param['values'] = [
|
||||
{ 'value': 0, 'description': 'Disabled' },
|
||||
{ 'value': 1, 'description': 'Enabled' }
|
||||
]
|
||||
|
||||
|
||||
if len(param.GetBitmaskList()) > 0:
|
||||
|
||||
Reference in New Issue
Block a user