From d130f4f849bedb62db4eb04ab95461b600c5d47c Mon Sep 17 00:00:00 2001 From: hcj <1224667075@qq.com> Date: Sat, 23 Nov 2024 18:40:38 +0800 Subject: [PATCH] =?utf8?q?=E4=BF=AE=E6=94=B94Gota=E5=8D=87=E7=BA=A7?= =?utf8?q?=E5=88=A4=E6=96=AD=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../peripheral/slip/cat1Service/cat1_server.cpp | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/code/sdk/drivers/peripheral/slip/cat1Service/cat1_server.cpp b/code/sdk/drivers/peripheral/slip/cat1Service/cat1_server.cpp index 539c5b936..a3a8b9a5f 100644 --- a/code/sdk/drivers/peripheral/slip/cat1Service/cat1_server.cpp +++ b/code/sdk/drivers/peripheral/slip/cat1Service/cat1_server.cpp @@ -248,9 +248,9 @@ static uint8_t g_time_synced = 0; static uint8_t g_time_sync_retry_time = 0; -static uint8_t need_py_srv_ver_txt = 0; +static uint8_t PY_SRV_VER_CURRENT = 0; -#define PY_SRV_VER_CURRENT 15 +// #define PY_SRV_VER_CURRENT 15 #define PY_SRV_VER_SUPORT_PY_OTA_MINI_VER 13 @@ -769,14 +769,19 @@ static int decodeNetStat(char* msg) int read_size=fread(read_buf,1,32,fp); if(read_size) { - need_py_srv_ver_txt=atoi(read_buf); - printf("need_py_srv_ver_txt : %d\r\n",need_py_srv_ver_txt); + PY_SRV_VER_CURRENT=atoi(read_buf); + printf("need_py_srv_ver_txt : %d\r\n",PY_SRV_VER_CURRENT); } fclose(fp); } + else + { + PY_SRV_VER_CURRENT=0; + + } - if (g_py_ver >= PY_SRV_VER_SUPORT_PY_OTA_MINI_VER && ((g_py_ver < PY_SRV_VER_CURRENT ) || g_py_ver= PY_SRV_VER_SUPORT_PY_OTA_MINI_VER && g_py_ver