mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-10-29 17:54:14 +08:00
fix CMD: pvid: remove atoi_results_u8 from check
This commit is contained in:
1 parent
dca92d7f45
commit
f627559005
1 file changed
+2
-2
+2
-2
@@ -1686,8 +1686,8 @@ void cmd_parser(void) __banked
|
||||
stp_off();
|
||||
stpEnabled = 0;
|
||||
}
|
||||
} else if (cmd_compare(0, "pvid") && cmd_words_len == 3) {
|
||||
if (cmd_parse_port_separator(cmd_words_b[1]) != 0 && atoi_results_u8
|
||||
} else if (cmd_compare(0, "pvid")) {
|
||||
if (cmd_words_len == 3 && cmd_parse_port_separator(cmd_words_b[1]) != 0
|
||||
&& atoi_short(cmd_words_b[2]) && atoi_results_short && atoi_results_short <= 4094)
|
||||
port_pvid_set(atoi_results_u8, atoi_results_short);
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user