mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-10-29 17:54:14 +08:00
parse_isolate() make use of cmd_words_len
This commit is contained in:
1 parent
2acf2499d1
commit
1fe236246a
1 file changed
+2
-2
+2
-2
@@ -393,7 +393,7 @@ void parse_isolate(void)
|
|||||||
{
|
{
|
||||||
__xdata uint16_t members = 0;
|
__xdata uint16_t members = 0;
|
||||||
|
|
||||||
if (cmd_words_b[3] <= 0)
|
if (cmd_words_len < 3)
|
||||||
goto err;
|
goto err;
|
||||||
|
|
||||||
print_string("\nISOLATE ");
|
print_string("\nISOLATE ");
|
||||||
@@ -431,7 +431,7 @@ void parse_isolate(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
uint8_t w = 2;
|
uint8_t w = 2;
|
||||||
while (cmd_words_b[w] > 0) {
|
while (w < cmd_words_len) {
|
||||||
__xdata uint8_t port;
|
__xdata uint8_t port;
|
||||||
if (isnumber(cmd_buffer[cmd_words_b[w]])) {
|
if (isnumber(cmd_buffer[cmd_words_b[w]])) {
|
||||||
port = cmd_buffer[cmd_words_b[w]] - '1';
|
port = cmd_buffer[cmd_words_b[w]] - '1';
|
||||||
|
|||||||
Reference in new issue
Block a user