From 8022227f3bbe3eec9f99f93bab4cb5f4a490fc30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Nohlg=C3=A5rd?= <joakim.nohlgard@eistec.se> Date: Mon, 25 Sep 2017 07:38:14 +0200 Subject: [PATCH] shell/ifconfig: Add STANDBY, print numeric if unknown state --- sys/shell/commands/sc_netif.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/shell/commands/sc_netif.c b/sys/shell/commands/sc_netif.c index 8c4f572869..c362229d51 100644 --- a/sys/shell/commands/sc_netif.c +++ b/sys/shell/commands/sc_netif.c @@ -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; } -- GitLab