1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:12:57 +01:00

sys/shell/sc_gnrc_rpl: Err out early if RPL not even started

Closes: https://github.com/RIOT-OS/RIOT/issues/16357
This commit is contained in:
chrysn 2021-04-20 17:04:27 +02:00
parent 89514938b2
commit 9ece00f10d

View File

@ -236,6 +236,11 @@ int _stats(void)
int _gnrc_rpl_dodag_show(void)
{
if (gnrc_rpl_pid == KERNEL_PID_UNDEF) {
printf("RPL not initializied\n");
return 1;
}
printf("instance table:\t");
for (uint8_t i = 0; i < GNRC_RPL_INSTANCES_NUMOF; ++i) {
if (gnrc_rpl_instances[i].state == 0) {