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:
Aurelien Jacobs 2015-09-20 16:18:18 +02:00
parent 06f63a749e
commit 485a285abe
1 changed files with 1 additions and 1 deletions

View File

@ -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;