projects
/
mirrors
/
FD230.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fad5fa9
)
增加ppg ble服务,连接notif限制
1460/1
1460/head
author
hcj
<1224667075@qq.com>
Mon, 25 Nov 2024 03:04:31 +0000
(11:04 +0800)
committer
hcj
<1224667075@qq.com>
Mon, 25 Nov 2024 03:04:31 +0000
(11:04 +0800)
code/sdk/drivers/peripheral/ppg/ppgBleService/ppgBleService.c
patch
|
blob
|
history
diff --git
a/code/sdk/drivers/peripheral/ppg/ppgBleService/ppgBleService.c
b/code/sdk/drivers/peripheral/ppg/ppgBleService/ppgBleService.c
index
fa69240
..
53d176c
100644
(file)
--- a/
code/sdk/drivers/peripheral/ppg/ppgBleService/ppgBleService.c
+++ b/
code/sdk/drivers/peripheral/ppg/ppgBleService/ppgBleService.c
@@
-126,6
+126,10
@@
errcode_t ble_ppgtest_server_send_input_report(const uint8_t *data, uint8_t len)
return ERRCODE_BT_FAIL;
\r
}
\r
errcode_t ret = 0;
\r
+
\r
+ if(g_ble_conn_id==0)
\r
+ return ERRCODE_BT_FAIL;
\r
+
\r
ret = gatts_notify_indicate(g_ble_server_id, g_ble_conn_id, ¶m);
\r
//printf("ble_ppgtest_server_send_input_report: 0x%x g_ble_conn_id:%d g_ppgtest_notify_report_att_hdl:%d\r\n",
\r
// ret,g_ble_conn_id,g_ppgtest_notify_report_att_hdl);
\r