AP_HAL_ChibiOS: add support for inline comments in hwdef.dat

This commit is contained in:
bugobliterator 2021-01-17 22:25:39 +05:30 committed by Peter Barker
parent 41693403e2
commit c02c546077

View File

@ -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