From 62db46df039a3d039ced8f4cdc1094fea6b7333c Mon Sep 17 00:00:00 2001 From: Caisking Date: Tue, 8 Jul 2025 17:23:58 +0800 Subject: [PATCH] =?utf8?q?=E4=BF=AE=E6=94=B9=E8=A7=86=E9=A2=91=E8=A1=A8?= =?utf8?q?=E7=9B=98=E6=96=87=E4=BB=B6=E7=9A=84=E6=8B=BC=E6=8E=A5=E9=97=AE?= =?utf8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../wearable/service/ble_service/bleservice/bleEvent.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/sdk/application/wearable/service/ble_service/bleservice/bleEvent.c b/code/sdk/application/wearable/service/ble_service/bleservice/bleEvent.c index 775469b8b..0977143b8 100644 --- a/code/sdk/application/wearable/service/ble_service/bleservice/bleEvent.c +++ b/code/sdk/application/wearable/service/ble_service/bleservice/bleEvent.c @@ -210,14 +210,14 @@ static errcode_t get_file_recv_file_path(char* input_filename ,uint32_t input_si } static errcode_t get_custom_dial_file_path(uint16_t id,char *filename,uint32_t input_size, char* output_file_path , uint32_t max_output_size) { - if( id >=5 || output_file_path == NULL) + if( id >=5 || output_file_path == NULL || filename == NULL) { return ERRCODE_FAIL; } char name[64]={0}; ble_get_dial_path(name,id); int ret; - if(id == 1) //自定义视频表盘Id 1 + if(id == 1 && strcmp(filename, "main_bg") == 0) //自定义视频表盘Id 1 只有背景需要是mp4 main_bg { ret = sprintf_s(output_file_path,max_output_size,"%s/%s.mp4",name,filename); } -- 2.17.1