From e35cbfb85cb9e8fd98244960dea0fc1dbc0db8be Mon Sep 17 00:00:00 2001 From: Lingao Meng Date: Fri, 27 Aug 2021 10:21:03 +0800 Subject: [PATCH] Bluetooth: include: Fix wrong docs We can't call function which used by static init veriable. Signed-off-by: Lingao Meng --- include/bluetooth/bluetooth.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/bluetooth/bluetooth.h b/include/bluetooth/bluetooth.h index bb9cda3ec64..92b67fec824 100644 --- a/include/bluetooth/bluetooth.h +++ b/include/bluetooth/bluetooth.h @@ -386,7 +386,7 @@ enum { * The application can set the device name itself by including the * following in the advertising data. * @code - * BT_DATA(BT_DATA_NAME_COMPLETE, name, strlen(name)) + * BT_DATA(BT_DATA_NAME_COMPLETE, name, sizeof(name) - 1) * @endcode */ BT_LE_ADV_OPT_USE_NAME = BIT(3),