Fix version python

This commit is contained in:
iranl
2024-12-03 22:22:04 +01:00
parent 041967d0d8
commit e09a6b28ee
2 changed files with 2 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ elif (data[args.ota_type]['version'] == version):
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:

View File

@@ -38,7 +38,7 @@ with open('ota/manifest.json', 'r+') as json_file:
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)