We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d702d95 commit 5f999abCopy full SHA for 5f999ab
subsys/softdevice_handler/nrf_sdh_soc.c
@@ -41,12 +41,12 @@ static const char *tostr(uint32_t evt)
41
42
static void soc_evt_poll(void *context)
43
{
44
- int err;
+ uint32_t err;
45
uint32_t evt_id;
46
47
while (true) {
48
err = sd_evt_get(&evt_id);
49
- if (err) {
+ if (err != NRF_SUCCESS) {
50
break;
51
}
52
@@ -64,7 +64,7 @@ static void soc_evt_poll(void *context)
64
65
66
__ASSERT(err == NRF_ERROR_NOT_FOUND,
67
- "Failed to receive SoftDevice event, nrf_error %#x", err);
+ "Failed to receive SoftDevice event, nrf_error %#x", err);
68
69
70
/* Listen to SoftDevice events */
0 commit comments