Skip to content

Commit

Permalink
Fix data parsing in OTA list image generator
Browse files Browse the repository at this point in the history
  • Loading branch information
ATmobica committed Feb 15, 2022
1 parent 5dc3600 commit 20f7aec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/platform/mbed/ota/generate_ota_list_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ def CreateOtaListFile(config, imagePath):
data = json.loads(FILE_DATA_TEMPLATE)

data["deviceSoftwareVersionModel"][0]["vendorId"] = int(
config["config"]["vendor-id"]["value"])
config["config"]["vendor-id"]["value"], base=16)
data["deviceSoftwareVersionModel"][0]["productId"] = int(
config["config"]["product-id"]["value"])
config["config"]["product-id"]["value"], base=16)
data["deviceSoftwareVersionModel"][0]["softwareVersion"] = int(
config["config"]["version-number"]["value"])
data["deviceSoftwareVersionModel"][0]["softwareVersionString"] = config[
Expand Down

0 comments on commit 20f7aec

Please sign in to comment.