Skip to content

Commit

Permalink
fix(ci): stm32cube HAL core version in header
Browse files Browse the repository at this point in the history
Signed-off-by: Frederic Pillon <[email protected]>
  • Loading branch information
fpistm committed Mar 1, 2024
1 parent 42d69b7 commit c12103b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions CI/update/stm32cube.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,16 @@ def checkVersion(serie, repo_path):
/ "Src"
/ f"stm32{lserie}xx_hal.c"
)
with open(HAL_file, "r") as fp:
data = fp.read()
if "HAL_VERSION_MAIN" not in data:
HAL_file = (
repo_path
/ hal_dest_path
/ f"STM32{userie}xx_HAL_Driver"
/ "Inc"
/ f"stm32{lserie}xx_hal.h"
)
core_HAL_versions[serie] = parseVersion(HAL_file, patterns)

patterns = [
Expand Down

0 comments on commit c12103b

Please sign in to comment.