mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-24 08:44:08 -04:00
AP_HAL_ChibiOS: addressed reviewed comments
This commit is contained in:
parent
15cd9d502d
commit
ce1ee6334f
@ -2205,9 +2205,8 @@ def process_line(line):
|
||||
env_vars[a[1]] = ' '.join(a[2:])
|
||||
|
||||
|
||||
def process_file(fname,extra_hwdef):
|
||||
def process_file(filename):
|
||||
'''process a hwdef.dat file'''
|
||||
for filename in [fname,extra_hwdef]:
|
||||
try:
|
||||
f = open(filename, "r")
|
||||
except Exception:
|
||||
@ -2261,7 +2260,11 @@ def add_apperiph_defaults(f):
|
||||
|
||||
|
||||
# process input file
|
||||
process_file(args.hwdef,args.extra_hwdef)
|
||||
if args.hwdef != None:
|
||||
for filename in [args.hwdef,args.extra_hwdef]:
|
||||
process_file(filename)
|
||||
else:
|
||||
process_file(args.hwdef)
|
||||
|
||||
outdir = args.outdir
|
||||
if outdir is None:
|
||||
|
Loading…
Reference in New Issue
Block a user