Skip to content

Commit

Permalink
simplify conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason2866 authored Nov 7, 2024
1 parent ffaf5ce commit ccedd47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builder/frameworks/espidf.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def _get_installed_standard_pip_packages():
board = env.BoardConfig()
mcu = board.get("build.mcu", "esp32")
flash_speed = board.get("build.f_flash", "40000000L")
flash_frequency = str(int(str(flash_speed).replace("L", "")) / 1000000) + "m"
flash_frequency = str(flash_speed.replace("000000L", "m"))
flash_mode = board.get("build.flash_mode", "dio")
idf_variant = mcu.lower()
flag_custom_sdkonfig = False
Expand Down

0 comments on commit ccedd47

Please sign in to comment.