Skip to content

Commit 5001ac4

Browse files
committed
Properly handle ESP-IDF package version for custom packages
Resolve platformio#593
1 parent bec7ade commit 5001ac4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

builder/frameworks/espidf.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -838,9 +838,8 @@ def create_version_file():
838838
version_file = os.path.join(FRAMEWORK_DIR, "version.txt")
839839
if not os.path.isfile(version_file):
840840
with open(version_file, "w") as fp:
841-
fp.write(
842-
get_original_version(platform.get_package_version("framework-espidf"))
843-
)
841+
package_version = platform.get_package_version("framework-espidf")
842+
fp.write(get_original_version(package_version) or package_version)
844843

845844

846845
def generate_empty_partition_image(binary_path, image_size):

0 commit comments

Comments
 (0)