From edc9c2b3eb35f35d3ae9cb803f814bd1ef1cf94a Mon Sep 17 00:00:00 2001 From: Fabio Baltieri Date: Sun, 29 Dec 2024 19:12:32 +0000 Subject: [PATCH] fw: make ad params constant --- firmware/src/ble.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/src/ble.c b/firmware/src/ble.c index 5d55809..a1916e4 100644 --- a/firmware/src/ble.c +++ b/firmware/src/ble.c @@ -24,12 +24,12 @@ static const struct bt_data ad[] = { BT_DATA(BT_DATA_NAME_COMPLETE, DEVICE_NAME, DEVICE_NAME_LEN), }; -static struct bt_le_adv_param ad_param = BT_LE_ADV_PARAM_INIT( +static const struct bt_le_adv_param ad_param = BT_LE_ADV_PARAM_INIT( BT_LE_ADV_OPT_CONN, BT_GAP_ADV_SLOW_INT_MIN, BT_GAP_ADV_SLOW_INT_MAX, NULL); static bt_addr_le_t bond_addr; -static struct bt_le_adv_param bond_ad_param = BT_LE_ADV_PARAM_INIT( +static const struct bt_le_adv_param bond_ad_param = BT_LE_ADV_PARAM_INIT( BT_LE_ADV_OPT_CONN | BT_LE_ADV_OPT_DIR_MODE_LOW_DUTY, BT_GAP_ADV_FAST_INT_MIN_2, BT_GAP_ADV_FAST_INT_MAX_2, &bond_addr);