From 2ab3d83643de0a1da30246b1ab35315e4aaa1c21 Mon Sep 17 00:00:00 2001 From: SnickerSun Date: Thu, 6 Jun 2024 18:47:49 +0800 Subject: [PATCH] =?utf8?q?=E4=BF=AE=E5=A4=8Dcat1=20checkota.py=20=E5=8D=87?= =?utf8?q?=E7=BA=A7=E9=87=8D=E5=90=AF=E8=84=9A=E6=9C=AC=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../peripheral/slip/cat1Service/pyscript/checkota.py | 10 +++++----- ...R06A01M08_VOLTE_OCPU_QPY_BETA0312_20240318-1541.zip | 3 --- ...R06A01M08_VOLTE_OCPU_QPY_BETA0312_20240606-1837.zip | 3 +++ 3 files changed, 8 insertions(+), 8 deletions(-) delete mode 100644 code/sdk/drivers/peripheral/slip/cat1Service/pyscript/current_img/EG810MCNLAR06A01M08_VOLTE_OCPU_QPY_BETA0312/EG810MCNLAR06A01M08_VOLTE_OCPU_QPY_BETA0312_20240318-1541.zip create mode 100644 code/sdk/drivers/peripheral/slip/cat1Service/pyscript/current_img/EG810MCNLAR06A01M08_VOLTE_OCPU_QPY_BETA0312_20240606-1837.zip diff --git a/code/sdk/drivers/peripheral/slip/cat1Service/pyscript/checkota.py b/code/sdk/drivers/peripheral/slip/cat1Service/pyscript/checkota.py index 216de226f..dbc39ad44 100644 --- a/code/sdk/drivers/peripheral/slip/cat1Service/pyscript/checkota.py +++ b/code/sdk/drivers/peripheral/slip/cat1Service/pyscript/checkota.py @@ -99,13 +99,13 @@ def do_app_update_internal(app_type): uos.remove(tmpfile_path) ret = fota.download(srcurl,targetpyname) if ret == 0 : - print("ota success") ql_fs.file_copy(targetfile_path, tmpfile_path) set_version_to_json_config(app_type,version) - # fota.set_update_flag() # 设置升级标志 - Power.powerRestart() # 重启 - else: - print("ota failed") + print("ota success") + else: + print("ota failed") + # 升级后重启 + Power.powerRestart() else: print("No need update python application") diff --git a/code/sdk/drivers/peripheral/slip/cat1Service/pyscript/current_img/EG810MCNLAR06A01M08_VOLTE_OCPU_QPY_BETA0312/EG810MCNLAR06A01M08_VOLTE_OCPU_QPY_BETA0312_20240318-1541.zip b/code/sdk/drivers/peripheral/slip/cat1Service/pyscript/current_img/EG810MCNLAR06A01M08_VOLTE_OCPU_QPY_BETA0312/EG810MCNLAR06A01M08_VOLTE_OCPU_QPY_BETA0312_20240318-1541.zip deleted file mode 100644 index 1dd7af13e..000000000 --- a/code/sdk/drivers/peripheral/slip/cat1Service/pyscript/current_img/EG810MCNLAR06A01M08_VOLTE_OCPU_QPY_BETA0312/EG810MCNLAR06A01M08_VOLTE_OCPU_QPY_BETA0312_20240318-1541.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:032377dddbba8121c6463dfe8a03438356a7b91c892222b6ed158b9991494b45 -size 11615412 diff --git a/code/sdk/drivers/peripheral/slip/cat1Service/pyscript/current_img/EG810MCNLAR06A01M08_VOLTE_OCPU_QPY_BETA0312_20240606-1837.zip b/code/sdk/drivers/peripheral/slip/cat1Service/pyscript/current_img/EG810MCNLAR06A01M08_VOLTE_OCPU_QPY_BETA0312_20240606-1837.zip new file mode 100644 index 000000000..0e3468160 --- /dev/null +++ b/code/sdk/drivers/peripheral/slip/cat1Service/pyscript/current_img/EG810MCNLAR06A01M08_VOLTE_OCPU_QPY_BETA0312_20240606-1837.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6d60a6b189a11b48a0eef9dc0f7f6834d045d0e0332b9cd43ff2115e9f67befa +size 11632111 -- 2.17.1