Skip to content

Commit 6c45f97

Browse files
committed
debug: ppi_trace: fix comparing error code
nrfx uses errno now. Signed-off-by: Marcin Szymczyk <[email protected]>
1 parent 187155b commit 6c45f97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/debug/ppi_trace/ppi_trace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ static bool ppi_trace_gpiote_pin_init(
4747
}
4848

4949
if (nrfx_gpiote_channel_alloc(ppi_trace_gpiote_pin->gpiote,
50-
&ppi_trace_gpiote_pin->gpiote_channel) != NRFX_SUCCESS) {
50+
&ppi_trace_gpiote_pin->gpiote_channel) < 0) {
5151
LOG_ERR("Failed to allocate GPIOTE channel.");
5252
return false;
5353
}

0 commit comments

Comments
 (0)