Skip to content

Commit

Permalink
Remove a warning related to BT_LE_ADV_PARAM() needing a const
Browse files Browse the repository at this point in the history
  • Loading branch information
AliNordic committed Oct 29, 2024
1 parent 327912a commit e409a10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion v2.7.0-v2.8.x/lesson4/blefund_less4_exer1/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <dk_buttons_and_leds.h>
/* STEP 7 - Include the header file of MY LBS customer service */

static struct bt_le_adv_param *adv_param = BT_LE_ADV_PARAM(
static const struct bt_le_adv_param *adv_param = BT_LE_ADV_PARAM(
(BT_LE_ADV_OPT_CONNECTABLE |
BT_LE_ADV_OPT_USE_IDENTITY), /* Connectable advertising and use identity address */
800, /* Min Advertising Interval 500ms (800*0.625ms) */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
/* STEP 7 - Include the header file of MY LBS customer service */
#include "my_lbs.h"

static struct bt_le_adv_param *adv_param = BT_LE_ADV_PARAM(
static const struct bt_le_adv_param *adv_param = BT_LE_ADV_PARAM(
(BT_LE_ADV_OPT_CONNECTABLE |
BT_LE_ADV_OPT_USE_IDENTITY), /* Connectable advertising and use identity address */
800, /* Min Advertising Interval 500ms (800*0.625ms) */
Expand Down

0 comments on commit e409a10

Please sign in to comment.