From 2c8075af67e428ef2fb7a7394d3fb4f4a01ff771 Mon Sep 17 00:00:00 2001 From: hcj <1224667075@qq.com> Date: Thu, 21 Nov 2024 18:30:12 +0800 Subject: [PATCH] =?utf8?q?=E5=A2=9E=E5=8A=A0py=E7=89=88=E6=9C=AC=E5=88=A4?= =?utf8?q?=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../drivers/peripheral/slip/cat1Service/cat1_server.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/code/sdk/drivers/peripheral/slip/cat1Service/cat1_server.cpp b/code/sdk/drivers/peripheral/slip/cat1Service/cat1_server.cpp index 547dad9a3..c35b06eda 100644 --- a/code/sdk/drivers/peripheral/slip/cat1Service/cat1_server.cpp +++ b/code/sdk/drivers/peripheral/slip/cat1Service/cat1_server.cpp @@ -807,11 +807,14 @@ void cat1_call_hungup(void) void cat1_call_answer(void) { #if PY_SRV_VER_CURRENT >=16 + if(g_py_ver>=16) + { if(osTimerIsRunning(g_timer_time_answer)==0 ) { osStatus_t ret = osTimerStart(g_timer_time_answer,3000); WEARABLE_LOGI(WEARABLE_LOG_MODULE_MAIN_SERVICE,"cat1 g_timer_time_answer timer ret %d\n",ret); } + } #endif udp_send_msg_toCat1(UDP_CMD_ANSWER,"0"); @@ -828,11 +831,15 @@ void cat1_call_dial(char* phonenum) if (volte == true){ WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP,"cat1_call_dial %s\n",phonenum); #if PY_SRV_VER_CURRENT >=16 + if(g_py_ver>=16) + { if(osTimerIsRunning(g_timer_time_Dial)==0 ) { osStatus_t ret = osTimerStart(g_timer_time_Dial,5000); WEARABLE_LOGI(WEARABLE_LOG_MODULE_MAIN_SERVICE,"cat1 g_timer_time_Dial timer ret %d\n",ret); } + } + #endif udp_send_msg_toCat1(UDP_CMD_DIAL_NUMB,phonenum); -- 2.17.1