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

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

This commit is contained in:
Joakim Nohlgård 2017-09-25 07:38:14 +02:00
parent e39a0a1af5
commit 8022227f3b

View File

@ -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;
}