Skip to content

Commit

Permalink
Actually fix FPU values
Browse files Browse the repository at this point in the history
  • Loading branch information
maxgerhardt committed Nov 29, 2024
1 parent 76fcfd1 commit 4c9e33f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/platformio/platformio-build.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def configure_application_offset(mcu, upload_protocol):
# LD_FLASH_OFFSET is mandatory even if there is no offset
env.Append(LINKFLAGS=["-Wl,--defsym=LD_FLASH_OFFSET=%s" % hex(offset)])

if any(mcu in board_config.get("build.cpu") for mcu in ("cortex-m4")):
if board_config.get("build.cpu") in ("cortex-m4"):
env.Append(
CCFLAGS=["-mfpu=fpv4-sp-d16", "-mfloat-abi=hard"],
LINKFLAGS=["-mfpu=fpv4-sp-d16", "-mfloat-abi=hard"],
Expand Down

0 comments on commit 4c9e33f

Please sign in to comment.