Fixed command args handling of mbus-serial-scan-secondary
This commit is contained in:
parent
555c627665
commit
7a83f7931d
@ -50,8 +50,8 @@ main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
else if (argc == 4 && strcmp(argv[1], "-d") == 0)
|
else if (argc == 4 && strcmp(argv[1], "-d") == 0)
|
||||||
{
|
{
|
||||||
device = argv[1];
|
device = argv[2];
|
||||||
addr_mask = strdup(argv[2]);
|
addr_mask = strdup(argv[3]);
|
||||||
debug = 1;
|
debug = 1;
|
||||||
}
|
}
|
||||||
else if (argc == 4 && strcmp(argv[1], "-b") == 0)
|
else if (argc == 4 && strcmp(argv[1], "-b") == 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user