Skip to content

Commit c12103b

Browse files
committed
fix(ci): stm32cube HAL core version in header
Signed-off-by: Frederic Pillon <[email protected]>
1 parent 42d69b7 commit c12103b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

CI/update/stm32cube.py

+10
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,16 @@ def checkVersion(serie, repo_path):
450450
/ "Src"
451451
/ f"stm32{lserie}xx_hal.c"
452452
)
453+
with open(HAL_file, "r") as fp:
454+
data = fp.read()
455+
if "HAL_VERSION_MAIN" not in data:
456+
HAL_file = (
457+
repo_path
458+
/ hal_dest_path
459+
/ f"STM32{userie}xx_HAL_Driver"
460+
/ "Inc"
461+
/ f"stm32{lserie}xx_hal.h"
462+
)
453463
core_HAL_versions[serie] = parseVersion(HAL_file, patterns)
454464

455465
patterns = [

0 commit comments

Comments
 (0)