问题修复:蓝牙名称不能超过20字节

This commit is contained in:
吴俊潮 2025-07-30 13:36:22 +08:00
parent 46cc2f2021
commit 46e04391a7
2 changed files with 24000 additions and 23998 deletions

View File

@ -44,8 +44,9 @@ uint8_t ble_init(void)
{
if(ble_cnt == 0)
{
char ble_id[32];
strcpy (ble_id, "GSDT_Signal_Generator_V1.0");
//不能超过20字节
char ble_id[20];
strncpy (ble_id, "GSDT_SGGT_V1.0", 20);
write_ble_id(ble_id); //修改蓝牙名称
ble_cnt++;

File diff suppressed because it is too large Load Diff