1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-09-30 01:41:59 +03:00

tools/lib/atrf.c (select_driver): "default" selects the default driver

This commit is contained in:
Werner Almesberger 2011-04-19 23:37:44 -03:00
parent c4167d8df4
commit a15ab43b1c

View File

@ -123,9 +123,8 @@ static const struct atrf_driver *select_driver(const char *arg,
}
*opt = NULL;
if (!arg) {
if (!arg || !strcmp(arg, "default"))
return *drivers;
}
end = strchr(arg, ':');
if (!end)