Skip to content

Commit f066b0c

Browse files
committed
sdh: let the state observers be static
Let NRF_SDH_STATE_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 914348f commit f066b0c

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
@@ -150,8 +150,8 @@ struct nrf_sdh_state_evt_observer {
150150
#define NRF_SDH_STATE_EVT_OBSERVER(_observer, _handler, _ctx, _prio) \
151151
PRIO_LEVEL_IS_VALID(_prio); \
152152
static int _handler(enum nrf_sdh_state_evt, void *); \
153-
TYPE_SECTION_ITERABLE(struct nrf_sdh_state_evt_observer, _observer, \
154-
nrf_sdh_state_evt_observers, PRIO_LEVEL_ORD(_prio)) = { \
153+
static TYPE_SECTION_ITERABLE(struct nrf_sdh_state_evt_observer, _observer, \
154+
nrf_sdh_state_evt_observers, PRIO_LEVEL_ORD(_prio)) = { \
155155
.handler = _handler, \
156156
.context = _ctx, \
157157
}

0 commit comments

Comments
 (0)