diff --git a/resources/config_version.py b/resources/config_version.py index 7807154..7b7a0a5 100644 --- a/resources/config_version.py +++ b/resources/config_version.py @@ -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: diff --git a/resources/ota_manifest.py b/resources/ota_manifest.py index 5c1f780..d9b09b7 100644 --- a/resources/ota_manifest.py +++ b/resources/ota_manifest.py @@ -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)