From d9805b2ac6d7e9324a09ca4d2a146276f2132ced Mon Sep 17 00:00:00 2001 From: liurenxu Date: Thu, 21 Dec 2023 10:08:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=93=9D=E7=89=99=E9=A9=B1?= =?UTF-8?q?=E5=8A=A8=E5=8F=82=E6=95=B0=E5=88=A4=E6=96=AD=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: liurenxu --- .../liteos_m/hals/drivers/bluetooth_lite/bluetooth_service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/niobeu4/liteos_m/hals/drivers/bluetooth_lite/bluetooth_service.c b/niobeu4/liteos_m/hals/drivers/bluetooth_lite/bluetooth_service.c index b1e5106..ddb41a6 100755 --- a/niobeu4/liteos_m/hals/drivers/bluetooth_lite/bluetooth_service.c +++ b/niobeu4/liteos_m/hals/drivers/bluetooth_lite/bluetooth_service.c @@ -241,7 +241,7 @@ BtError BleGattsAddCharDescr(uint16_t serviceHandle, BtUuid *descrUuid, uint16_t */ BtError BleGattsAddChar(uint16_t serviceHandle, GattsChar *character) { - if ((charUuid == NULL) || (character == NULL) || (character->charVal == NULL)) { + if ((character == NULL) || (character->charUuid == NULL) || (character->charVal == NULL)) { BT_DEBUG("BleGattsAddChar param is NULL! \n"); return BT_PARAMINPUT_ERROR; } -- Gitee