File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,11 @@ def safe_copy_file(src: str, dst: str) -> bool:
117117 return True
118118
119119
120+ def has_valid_sdkconfig (config_value : str ) -> bool :
121+ """Check if sdkconfig value is valid and non-empty."""
122+ return bool (config_value and config_value .strip ())
123+
124+
120125class Espressif32Platform (PlatformBase ):
121126 """ESP32 platform implementation for PlatformIO with optimized toolchain management."""
122127
@@ -323,8 +328,7 @@ def _configure_espidf_framework(
323328 board_config .get ("espidf.custom_sdkconfig" , "" )
324329 )
325330
326- if (custom_sdkconfig and custom_sdkconfig .strip ()) or \
327- (board_sdkconfig and board_sdkconfig .strip ()):
331+ if has_valid_sdkconfig (custom_sdkconfig ) or has_valid_sdkconfig (board_sdkconfig ):
328332 frameworks .append ("espidf" )
329333 self .packages ["framework-espidf" ]["optional" ] = False
330334 if mcu == "esp32c2" :
You can’t perform that action at this time.
0 commit comments