减少ble发送文件时包与包之间的间隔为15ms
authorSnickerSun <snickersun@163.com>
Thu, 11 Jul 2024 10:37:39 +0000 (18:37 +0800)
committerSnickerSun <snickersun@163.com>
Thu, 11 Jul 2024 10:37:39 +0000 (18:37 +0800)
code/sdk/application/wearable/service/ble_service/bleservice/bleEvent.c

index 46472a8..9b33957 100644 (file)
@@ -3927,7 +3927,7 @@ bool get_AI_PATH_and_size(char *path,uint32_t *size)
         return false;\r
     }\r
 }\r
-#define SEND_AIVOICE_SPEED 30\r
+#define SEND_AIVOICE_PACKAGE_DELAY 15\r
 //APP获取录音文件,录音文件上传\r
 static void GetAiRecordCmd(uint16_t cmd,uint8_t *data,uint16_t len,uint8_t *totaldata,uint8_t crcvalue)\r
 {\r
@@ -3970,7 +3970,7 @@ static void GetAiRecordCmd(uint16_t cmd,uint8_t *data,uint16_t len,uint8_t *tota
             \r
             send_big_data(1,data,read_size,file_size,pack_id,pack,0x34,1);\r
             pack_id++;\r
-            msleep(SEND_AIVOICE_SPEED);\r
+            msleep(SEND_AIVOICE_PACKAGE_DELAY);\r
 \r
         } while (read_size==num);\r
         free(data);\r