From 399060b5d43d900bd612ea332f8e3288c05dd31c Mon Sep 17 00:00:00 2001 From: biver Date: Wed, 15 Feb 2023 09:40:57 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D1=8F=D0=B5=D0=BC=20=D0=BA=D0=BE=D0=B4=20=D1=83=D0=BD=D0=B8?= =?UTF-8?q?=D0=B2=D0=B5=D1=80=D1=81=D0=B0=D0=BB=D1=8C=D0=BD=D0=BE=D0=B9=20?= =?UTF-8?q?=D0=B2=D0=B5=D1=80=D1=81=D0=B8=D0=B8=20=D0=B4=D0=BB=D1=8F=20?= =?UTF-8?q?=D0=BE=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PrepareServer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PrepareServer.py b/PrepareServer.py index e436d345..ab5187dc 100644 --- a/PrepareServer.py +++ b/PrepareServer.py @@ -20,17 +20,17 @@ littlefsSrcPath = ".pio/build/" + deviceName + "/littlefs.bin" if Path(firmwareSrcPath).is_file(): print("Ok...... \"" + firmwareSrcPath + "\" Exist!") - firmwareDstPath = "iotm/" + deviceName + "/999/firmware.bin" + firmwareDstPath = "iotm/" + deviceName + "/400/firmware.bin" Path(firmwareDstPath).parent.mkdir(parents=True, exist_ok=True) shutil.copy(firmwareSrcPath, firmwareDstPath) if Path(littlefsSrcPath).is_file(): print("Ok...... \"" + littlefsSrcPath + "\" Exist!") - littlefsDstPath = "iotm/" + deviceName + "/999/littlefs.bin" + littlefsDstPath = "iotm/" + deviceName + "/400/littlefs.bin" Path(littlefsDstPath).parent.mkdir(parents=True, exist_ok=True) shutil.copy(littlefsSrcPath, littlefsDstPath) - versionsJson = json.loads('{"' + deviceName + '": {"0": "999"}}') + versionsJson = json.loads('{"' + deviceName + '": {"0": "400"}}') with open("iotm/ver.json", "w", encoding='utf-8') as write_file: json.dump(versionsJson, write_file, ensure_ascii=False, indent=4, sort_keys=False)