Skip to content

Commit 14e3f31

Browse files
committed
Build tinyusb lib only when it's explicitly enabled
Resolve platformio#474
1 parent ab87490 commit 14e3f31

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

builder/frameworks/espidf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1281,7 +1281,7 @@ def _skip_prj_source_files(node):
12811281
# in File-API hence it's not present in components map. As a workaround we can build
12821282
# the lib using project build environment with additional flags from CMakeLists.txt
12831283
if (
1284-
idf_variant.startswith("esp32s2")
1284+
sdk_config.get("USB_ENABLED", False)
12851285
and "__idf_tinyusb" not in framework_components_map
12861286
):
12871287
build_tinyusb_lib(env)

examples/espidf-http-request/platformio.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ board = nano32
2121
[env:espea32]
2222
board = espea32
2323

24-
[env:esp320]
25-
board = esp320
24+
[env:esp32-s2-saola-1]
25+
board = esp32-s2-saola-1

0 commit comments

Comments
 (0)