Skip to content

Commit c00f016

Browse files
committed
Typo fix
1 parent 5e6f2bf commit c00f016

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

builder/frameworks/espidf.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,15 @@
5959
)
6060
)
6161

62+
# Legacy toolchains for mixed IDF/Arduino projects
63+
if "arduino" in env.subst("$PIOFRAMEWORK"):
64+
TOOLCHAIN_DIR = platform.get_package_dir("toolchain-xtensa32")
65+
6266
assert os.path.isdir(FRAMEWORK_DIR)
6367
assert os.path.isdir(TOOLCHAIN_DIR)
6468

6569
# Arduino framework as a component is not compatible with ESP-IDF >=4.1
6670
if "arduino" in env.subst("$PIOFRAMEWORK"):
67-
TOOLCHAIN_DIR = platform.get_package_dir("toolchain-xtensa32")
6871
ARDUINO_FRAMEWORK_DIR = platform.get_package_dir("framework-arduinoespressif32")
6972
# Possible package names in 'package@version' format is not compatible with CMake
7073
if "@" in os.path.basename(ARDUINO_FRAMEWORK_DIR):

0 commit comments

Comments
 (0)