commit | c4a512a107b3b7178d20c620e3841ba36d514a1a | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Sat Mar 04 00:11:10 2017 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Sat Mar 04 00:11:10 2017 +0000 |
tree | 31ab607789fd4aadd98cb068e0a8509fdcbd2878 | |
parent | a0ffabf0a80b83221d1d9c229da1eac816e9d7c0 [diff] | |
parent | 3c832c5c7e38414f06924a8f10c90e84d1715216 [diff] |
Merge "adb: turn on libusb by default."
diff --git a/adb/transport_usb.cpp b/adb/transport_usb.cpp index e16cf12..516b4f2 100644 --- a/adb/transport_usb.cpp +++ b/adb/transport_usb.cpp
@@ -102,7 +102,7 @@ #if defined(_WIN32) || !ADB_HOST return false; #else - static bool enable = getenv("ADB_LIBUSB") && strcmp(getenv("ADB_LIBUSB"), "1") == 0; - return enable; + static bool disable = getenv("ADB_LIBUSB") && strcmp(getenv("ADB_LIBUSB"), "0") == 0; + return !disable; #endif }