diff --git a/builder/frameworks/espidf.py b/builder/frameworks/espidf.py index 11de9bbf6..ea73bc73a 100644 --- a/builder/frameworks/espidf.py +++ b/builder/frameworks/espidf.py @@ -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