Skip to content

Commit 59c91cb

Browse files
nika-nordicnordic-piks
authored andcommitted
samples: peripheral: 802154_phy_test: fix nrfx_timer assert
Now this assertion must explicitly check for `0` value as nrfx 4.0 functions returns errno codes. Signed-off-by: Nikodem Kastelik <[email protected]>
1 parent 192d7a3 commit 59c91cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/peripheral/802154_phy_test/src/periph_proc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ void periph_init(void)
9999
nrfx_timer_config_t clk_timer_cfg = NRFX_TIMER_DEFAULT_CONFIG(base_frequency);
100100

101101
err_code = nrfx_timer_init(&clk_timer, &clk_timer_cfg, clk_timer_handler);
102-
NRFX_ASSERT(err_code);
102+
__ASSERT_NO_MSG(err_code == 0);
103103

104104
for (int i = 0; i < GPIO_COUNT; ++i) {
105105
nrfx_gpiote_t *gpiote = NRF_GPIOTE_FOR_GPIO(i);

0 commit comments

Comments
 (0)