scpi: don't stop parsing table at command 0 which is a valid command
command 0 is SCPI_CMD_REMOTE
This commit is contained in:
parent
06f63a749e
commit
485a285abe
|
@ -55,7 +55,7 @@ SR_PRIV const char *scpi_cmd_get(const struct scpi_command *cmdtable, int comman
|
|||
return NULL;
|
||||
|
||||
cmd = NULL;
|
||||
for (i = 0; cmdtable[i].command; i++) {
|
||||
for (i = 0; cmdtable[i].string; i++) {
|
||||
if (cmdtable[i].command == command) {
|
||||
cmd = cmdtable[i].string;
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue