From: hcj <1224667075@qq.com> Date: Sat, 23 Nov 2024 09:29:17 +0000 (+0800) Subject: cat1升级条件判断修改 X-Git-Tag: fd230_release_V1.3.102~39^2~3 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=refs%2Fchanges%2F1454%2F3;p=mirrors%2FFD230.git cat1升级条件判断修改 --- diff --git a/code/sdk/drivers/peripheral/slip/cat1Service/cat1_server.cpp b/code/sdk/drivers/peripheral/slip/cat1Service/cat1_server.cpp index 4599a858d..539c5b936 100644 --- a/code/sdk/drivers/peripheral/slip/cat1Service/cat1_server.cpp +++ b/code/sdk/drivers/peripheral/slip/cat1Service/cat1_server.cpp @@ -250,7 +250,7 @@ static uint8_t g_time_sync_retry_time = 0; static uint8_t need_py_srv_ver_txt = 0; -#define PY_SRV_VER_CURRENT 16 +#define PY_SRV_VER_CURRENT 15 #define PY_SRV_VER_SUPORT_PY_OTA_MINI_VER 13 @@ -770,12 +770,13 @@ static int decodeNetStat(char* msg) 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); } fclose(fp); } - 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 < PY_SRV_VER_CURRENT ) || g_py_ver=16 + // #if PY_SRV_VER_CURRENT >=16 if(g_py_ver>=16) { if(osTimerIsRunning(g_timer_time_answer)==0 ) @@ -836,7 +837,7 @@ void cat1_call_answer(void) WEARABLE_LOGI(WEARABLE_LOG_MODULE_MAIN_SERVICE,"cat1 g_timer_time_answer timer ret %d\n",ret); } } - #endif + // #endif udp_send_msg_toCat1(UDP_CMD_ANSWER,"0"); } @@ -851,7 +852,7 @@ void cat1_call_dial(char* phonenum) bool volte = OHOS::ConfigModel::GetInstance()->GetVoLTE_Call(); if (volte == true){ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP,"cat1_call_dial %s\n",phonenum); - #if PY_SRV_VER_CURRENT >=16 + // #if PY_SRV_VER_CURRENT >=16 if(g_py_ver>=16) { if(osTimerIsRunning(g_timer_time_Dial)==0 ) @@ -861,7 +862,7 @@ void cat1_call_dial(char* phonenum) } } - #endif + // #endif udp_send_msg_toCat1(UDP_CMD_DIAL_NUMB,phonenum); }