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:
parent
e39a0a1af5
commit
8022227f3b
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user