1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

net/rdcli_simple_standalone: fix error handling

This commit is contained in:
Hauke Petersen 2018-04-12 13:58:12 +02:00
parent 407856a13a
commit 2e6ccfa13f

View File

@ -39,12 +39,15 @@ static void *reg_runner(void *arg)
while (1) {
if (rdcli_simple_register() != RDCLI_SIMPLE_OK) {
LOG_ERROR("[rdcli_simple] error: unable to trigger registration\n");
/* if this fails once, it will always fail, so we might as well
* quit now */
LOG_ERROR("[rdcli_simple] error: unable to send registration\n");
break;
}
xtimer_sleep(RDCLI_UPDATE_INTERVAL);
}
return NULL; /* should never be reached */
return NULL;
}
void rdcli_simple_run(void)