From: SnickerSun Date: Thu, 11 Jul 2024 10:37:39 +0000 (+0800) Subject: 减少ble发送文件时包与包之间的间隔为15ms X-Git-Tag: release_V1.2.70_20241020_135402~828^2^2~1 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=6c7756f4082dd0cd686841e69bce9cca63b322bd;p=mirrors%2FFD230.git 减少ble发送文件时包与包之间的间隔为15ms --- 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 46472a8ce..9b3395794 100644 --- a/code/sdk/application/wearable/service/ble_service/bleservice/bleEvent.c +++ b/code/sdk/application/wearable/service/ble_service/bleservice/bleEvent.c @@ -3927,7 +3927,7 @@ bool get_AI_PATH_and_size(char *path,uint32_t *size) return false; } } -#define SEND_AIVOICE_SPEED 30 +#define SEND_AIVOICE_PACKAGE_DELAY 15 //APP获取录音文件,录音文件上传 static void GetAiRecordCmd(uint16_t cmd,uint8_t *data,uint16_t len,uint8_t *totaldata,uint8_t crcvalue) { @@ -3970,7 +3970,7 @@ static void GetAiRecordCmd(uint16_t cmd,uint8_t *data,uint16_t len,uint8_t *tota send_big_data(1,data,read_size,file_size,pack_id,pack,0x34,1); pack_id++; - msleep(SEND_AIVOICE_SPEED); + msleep(SEND_AIVOICE_PACKAGE_DELAY); } while (read_size==num); free(data);