mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
fix: schema failure
This commit is contained in:
parent
23613e7e4a
commit
71807c93d8
@ -146,8 +146,8 @@ whitelist_topics = set()
|
||||
if args.whitelist_file and os.path.exists(args.whitelist_file):
|
||||
with open(args.whitelist_file, 'r') as f:
|
||||
whitelist_data = yaml.safe_load(f)
|
||||
if whitelist_data and 'whitelist' in whitelist_data:
|
||||
whitelist_topics = set(whitelist_data['whitelist'])
|
||||
if whitelist_data and '__whitelist' in whitelist_data:
|
||||
whitelist_topics = set(whitelist_data['__whitelist'])
|
||||
|
||||
merged_em_globals['whitelist_topics'] = whitelist_topics
|
||||
|
||||
|
||||
@ -1,2 +1,2 @@
|
||||
whitelist:
|
||||
__whitelist:
|
||||
- vehicle_command
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user