File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -117,13 +117,6 @@ def safe_copy_file(src: str, dst: str) -> bool:
117
117
return True
118
118
119
119
120
- def has_valid_sdkconfig (config_value ) -> bool :
121
- """Check if sdkconfig value is valid and non-empty."""
122
- if not config_value :
123
- return False
124
- return bool (config_value .strip ())
125
-
126
-
127
120
class Espressif32Platform (PlatformBase ):
128
121
"""ESP32 platform implementation for PlatformIO with optimized toolchain management."""
129
122
@@ -330,7 +323,8 @@ def _configure_espidf_framework(
330
323
board_config .get ("espidf.custom_sdkconfig" , "" )
331
324
)
332
325
333
- if has_valid_sdkconfig (custom_sdkconfig ) or has_valid_sdkconfig (board_sdkconfig ):
326
+ if (custom_sdkconfig and custom_sdkconfig .strip ()) or \
327
+ (board_sdkconfig and board_sdkconfig .strip ()):
334
328
frameworks .append ("espidf" )
335
329
self .packages ["framework-espidf" ]["optional" ] = False
336
330
if mcu == "esp32c2" :
You can’t perform that action at this time.
0 commit comments