mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-08-30 14:52:51 +08:00
parse_port() make use of cmd_words_len
This commit is contained in:
+5
-5
@@ -601,11 +601,11 @@ void parse_mirror(void)
|
||||
|
||||
void parse_port(void)
|
||||
{
|
||||
if (cmd_words_b[3] <= 0) {
|
||||
print_string("\nUsage:");
|
||||
print_string("\nport <port> [show|on|off]");
|
||||
print_string("\nport <port> [10m|100m|1g|2g5|duplex] [half|full]");
|
||||
print_string("\nport <port> name [custom port name]\n");
|
||||
if (cmd_words_len < 3) {
|
||||
print_string("\nUsage:" \
|
||||
"\nport <port> [show|on|off]" \
|
||||
"\nport <port> [10m|100m|1g|2g5|duplex] [half|full]" \
|
||||
"\nport <port> name [custom port name]\n");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user