Merge "adb: turn on libusb by default."
am: 817b2f3b2c
Change-Id: Iaeefdcc45a5b96243b0b47822361d71c6e154b6e
This commit is contained in:
commit
ef501512fa
1 changed files with 2 additions and 2 deletions
|
|
@ -102,7 +102,7 @@ bool should_use_libusb() {
|
||||||
#if defined(_WIN32) || !ADB_HOST
|
#if defined(_WIN32) || !ADB_HOST
|
||||||
return false;
|
return false;
|
||||||
#else
|
#else
|
||||||
static bool enable = getenv("ADB_LIBUSB") && strcmp(getenv("ADB_LIBUSB"), "1") == 0;
|
static bool disable = getenv("ADB_LIBUSB") && strcmp(getenv("ADB_LIBUSB"), "0") == 0;
|
||||||
return enable;
|
return !disable;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue