mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-10-29 17:54:14 +08:00
parse_reg{set,get}() make use cmd_words_len.
This commit is contained in:
1 parent
301577efc8
commit
2cdab5f9d9
1 file changed
+2
-2
+2
-2
@@ -737,7 +737,7 @@ void parse_regget(void)
|
||||
{
|
||||
uint16_t reg = 0;
|
||||
|
||||
if (cmd_words_b[1] < 0) {
|
||||
if (cmd_words_len != 2) {
|
||||
goto err;
|
||||
}
|
||||
|
||||
@@ -772,7 +772,7 @@ void parse_regset(void)
|
||||
{
|
||||
uint16_t reg = 0;
|
||||
|
||||
if (cmd_words_b[2] < 0) {
|
||||
if (cmd_words_len != 2) {
|
||||
goto err;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user