Use `dio` when no flash mode is set

This commit is contained in:
Jason2866 2022-08-26 16:17:52 +02:00 committed by GitHub
parent 91875f20a5
commit 6e7f559f07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ def esp32_create_combined_bin(source, target, env):
flash_freq = env.BoardConfig().get("build.f_flash", "40000000L")
flash_freq = str(flash_freq).replace("L", "")
flash_freq = str(int(int(flash_freq) / 1000000)) + "m"
flash_mode = env.BoardConfig().get("build.flash_mode", "dout")
flash_mode = env.BoardConfig().get("build.flash_mode", "dio")
if flash_mode == "qio":
flash_mode = "dio"
elif flash_mode == "qout":