Skip to content

Commit 5f999ab

Browse files
anhmolteivindj-nordic
authored andcommitted
softdevice_handler: minor fixes for soc_evt_poll
Fix return type and indentation. Signed-off-by: Andreas Moltumyr <[email protected]>
1 parent d702d95 commit 5f999ab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

subsys/softdevice_handler/nrf_sdh_soc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ static const char *tostr(uint32_t evt)
4141

4242
static void soc_evt_poll(void *context)
4343
{
44-
int err;
44+
uint32_t err;
4545
uint32_t evt_id;
4646

4747
while (true) {
4848
err = sd_evt_get(&evt_id);
49-
if (err) {
49+
if (err != NRF_SUCCESS) {
5050
break;
5151
}
5252

@@ -64,7 +64,7 @@ static void soc_evt_poll(void *context)
6464
}
6565

6666
__ASSERT(err == NRF_ERROR_NOT_FOUND,
67-
"Failed to receive SoftDevice event, nrf_error %#x", err);
67+
"Failed to receive SoftDevice event, nrf_error %#x", err);
6868
}
6969

7070
/* Listen to SoftDevice events */

0 commit comments

Comments
 (0)