修复cat1 checkota.py 升级重启脚本错误
authorSnickerSun <snickersun@163.com>
Thu, 6 Jun 2024 10:47:49 +0000 (18:47 +0800)
committerSnickerSun <snickersun@163.com>
Thu, 6 Jun 2024 10:47:49 +0000 (18:47 +0800)
code/sdk/drivers/peripheral/slip/cat1Service/pyscript/checkota.py
code/sdk/drivers/peripheral/slip/cat1Service/pyscript/current_img/EG810MCNLAR06A01M08_VOLTE_OCPU_QPY_BETA0312/EG810MCNLAR06A01M08_VOLTE_OCPU_QPY_BETA0312_20240318-1541.zip [deleted file]
code/sdk/drivers/peripheral/slip/cat1Service/pyscript/current_img/EG810MCNLAR06A01M08_VOLTE_OCPU_QPY_BETA0312_20240606-1837.zip [new file with mode: 0644]

index 216de22..dbc39ad 100644 (file)
@@ -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 (file)
index 1dd7af1..0000000
+++ /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 (file)
index 0000000..0e34681
--- /dev/null
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6d60a6b189a11b48a0eef9dc0f7f6834d045d0e0332b9cd43ff2115e9f67befa
+size 11632111