HAL_ChibiOS: fix undef line processing

This commit is contained in:
bugobliterator 2018-01-19 19:06:33 +05:30 committed by Andrew Tridgell
parent 8286486890
commit c60c0b8ab1

View File

@ -773,6 +773,12 @@ def process_line(line):
spidev.append(a[1:])
if a[0] == 'undef':
config.pop(a[1], '')
#also remove all occurences of defines in previous lines if any
for line in alllines:
if line.startswith('define') and a[1] in line:
alllines.remove(line)