mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-11-17 23:28:27 +02:00
tools/lib/atrf.c (select_driver): "default" selects the default driver
This commit is contained in:
parent
c4167d8df4
commit
a15ab43b1c
@ -123,9 +123,8 @@ static const struct atrf_driver *select_driver(const char *arg,
|
|||||||
}
|
}
|
||||||
|
|
||||||
*opt = NULL;
|
*opt = NULL;
|
||||||
if (!arg) {
|
if (!arg || !strcmp(arg, "default"))
|
||||||
return *drivers;
|
return *drivers;
|
||||||
}
|
|
||||||
|
|
||||||
end = strchr(arg, ':');
|
end = strchr(arg, ':');
|
||||||
if (!end)
|
if (!end)
|
||||||
|
Loading…
Reference in New Issue
Block a user