Skip to content

Commit

Permalink
Merge pull request #555 from iranl/fix-version-python
Browse files Browse the repository at this point in the history
Fix version python
  • Loading branch information
iranl authored Dec 3, 2024
2 parents 041967d + e09a6b2 commit 2c7ea05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/config_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
else:
number = 1

version_int = version*100
version_int = int((float(version)*100)+0.1)
content_new = ""

with open ('src/Config.h', 'r' ) as readfile:
Expand Down
2 changes: 1 addition & 1 deletion resources/ota_manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

data[args.ota_type]['time'] = datetime.now(timezone.utc).strftime("%Y-%m-%d")
data[args.ota_type]['version'] = str(version)
data[args.ota_type]['version_int'] = str(version*100)
data[args.ota_type]['version_int'] = str(int((float(version)*100)+0.1))

if (args.ota_type == "release"):
data[args.ota_type]['fullversion'] = str(version)
Expand Down

0 comments on commit 2c7ea05

Please sign in to comment.