From 6ec75ffaed85cbeeed7e011a2b2d1eb68c90f0a4 Mon Sep 17 00:00:00 2001 From: 1624952103 Date: Wed, 21 Jan 2026 11:21:27 +0800 Subject: [PATCH] =?utf8?q?=E4=BC=98=E5=8C=96=E5=BF=83=E7=8E=87=E5=B9=BF?= =?utf8?q?=E6=92=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- code/sdk/zhihui/drivers/ppg/ppgBleService/ppgBleService.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/code/sdk/zhihui/drivers/ppg/ppgBleService/ppgBleService.c b/code/sdk/zhihui/drivers/ppg/ppgBleService/ppgBleService.c index 9c5c416f2..c53cc7607 100644 --- a/code/sdk/zhihui/drivers/ppg/ppgBleService/ppgBleService.c +++ b/code/sdk/zhihui/drivers/ppg/ppgBleService/ppgBleService.c @@ -130,10 +130,11 @@ errcode_t ble_ppgtest_server_send_input_report(const uint8_t *data, uint8_t len) } #ifndef TY_DEMO - param.value = param.value + 1; + if (memcpy_s(param.value+1, param.value_len, data, len) != EOK) +#else + if (memcpy_s(param.value, param.value_len, data, len) != EOK) #endif - - if (memcpy_s(param.value, param.value_len, data, len) != EOK) { + { printf( "[ppgtest][ERROR]send input report memcpy fail\r\n"); bt_os_free(param.value); return ERRCODE_BT_FAIL; -- 2.17.1