Skip to content
Snippets Groups Projects
Commit 8022227f authored by Joakim Nohlgård's avatar Joakim Nohlgård
Browse files

shell/ifconfig: Add STANDBY, print numeric if unknown state

parent e39a0a1a
No related branches found
No related tags found
No related merge requests found
......@@ -264,6 +264,9 @@ static void _print_netopt_state(netopt_state_t state)
case NETOPT_STATE_SLEEP:
printf("SLEEP");
break;
case NETOPT_STATE_STANDBY:
printf("STANDBY");
break;
case NETOPT_STATE_IDLE:
printf("IDLE");
break;
......@@ -277,6 +280,7 @@ static void _print_netopt_state(netopt_state_t state)
printf("RESET");
break;
default:
printf("%08x", (unsigned int)state);
/* nothing to do then */
break;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment