Skip to content

Commit

Permalink
Properly handle ESP-IDF package version for custom packages
Browse files Browse the repository at this point in the history
Resolve #593
  • Loading branch information
valeros committed Aug 17, 2021
1 parent bec7ade commit 5001ac4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions builder/frameworks/espidf.py
Original file line number Diff line number Diff line change
Expand Up @@ -838,9 +838,8 @@ def create_version_file():
version_file = os.path.join(FRAMEWORK_DIR, "version.txt")
if not os.path.isfile(version_file):
with open(version_file, "w") as fp:
fp.write(
get_original_version(platform.get_package_version("framework-espidf"))
)
package_version = platform.get_package_version("framework-espidf")
fp.write(get_original_version(package_version) or package_version)


def generate_empty_partition_image(binary_path, image_size):
Expand Down

0 comments on commit 5001ac4

Please sign in to comment.