Skip to content

Commit 640eed4

Browse files
committed
fix: script: preprocessor management
Signed-off-by: Frederic Pillon <[email protected]>
1 parent 47097af commit 640eed4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CI/utils/stm32cube.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def updateStm32Def(serie):
155155
pcond = "elif"
156156
print("#{} defined(STM32{}xx)".format(pcond, serie))
157157
print(' #include "stm32{}xx.h"'.format(serie.lower()))
158-
print(line.replace("if", "elif"), end="")
158+
print(line.replace("#if", "#elif"), end="")
159159
added = True
160160
else:
161161
print(line, end="")

0 commit comments

Comments
 (0)