From: SnickerSun Date: Thu, 6 Jun 2024 10:47:49 +0000 (+0800) Subject: 修复cat1 checkota.py 升级重启脚本错误 X-Git-Tag: release_V1.2.70_20241020_135402~1035 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=2ab3d83643de0a1da30246b1ab35315e4aaa1c21;p=mirrors%2FFD230.git 修复cat1 checkota.py 升级重启脚本错误 --- 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