Fix version python
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user