HAL_ChibiOS: fixed undef for define lines

this fixes IMU heater enable for CubeBlack+
This commit is contained in:
Andrew Tridgell 2019-09-11 06:43:19 +10:00
parent ab5868c0fa
commit 3c058851b2

View File

@ -1639,7 +1639,7 @@ def process_line(line):
bylabel.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:
if line.startswith('define') and a[1] == line.split()[1]:
alllines.remove(line)
newpins = []
for pin in allpins: