From: hcj <1224667075@qq.com> Date: Sat, 23 Nov 2024 10:40:38 +0000 (+0800) Subject: 修改4Gota升级判断条件 X-Git-Tag: fd230_release_V1.3.102~39^2~2 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=refs%2Fchanges%2F1454%2F4;p=mirrors%2FFD230.git 修改4Gota升级判断条件 --- 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