AP_HAL_ChibiOS: add support for inline comments in hwdef.dat
This commit is contained in:
parent
41693403e2
commit
c02c546077
@ -2088,6 +2088,7 @@ def process_file(filename):
|
||||
except Exception:
|
||||
error("Unable to open file %s" % filename)
|
||||
for line in f.readlines():
|
||||
line = line.split('#')[0] # ensure we discard the comments
|
||||
line = line.strip()
|
||||
if len(line) == 0 or line[0] == '#':
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user