Skip to content

Commit 914348f

Browse files
committed
sdh: let the stack observers be static
Let NRF_SDH_STACK_EVT_OBSERVER declare a static observer to prevent linking errors when another observer with the same name is declared somewhere else. Signed-off-by: Emanuele Di Santo <[email protected]>
1 parent f9b91b1 commit 914348f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/bm/softdevice_handler/nrf_sdh.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,8 @@ struct nrf_sdh_stack_evt_observer {
191191
#define NRF_SDH_STACK_EVT_OBSERVER(_observer, _handler, _ctx, _prio) \
192192
PRIO_LEVEL_IS_VALID(_prio); \
193193
static void _handler(void *); \
194-
const TYPE_SECTION_ITERABLE(struct nrf_sdh_stack_evt_observer, _observer, \
195-
nrf_sdh_stack_evt_observers, PRIO_LEVEL_ORD(_prio)) = { \
194+
static const TYPE_SECTION_ITERABLE(struct nrf_sdh_stack_evt_observer, _observer, \
195+
nrf_sdh_stack_evt_observers, PRIO_LEVEL_ORD(_prio)) = { \
196196
.handler = _handler, \
197197
.context = _ctx, \
198198
}

0 commit comments

Comments
 (0)