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 b1e5106f1690d1a86a730421b00cd6099fb77028..ddb41a6d8f7d81be3b2166f1ed1eb11e503ff18d 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; }