commit | 817b2f3b2c708b17e2b89e2c78e75816db8ea133 | [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 | 8df4dded138b3fbc70945ad5988d4500f2dd0774 [diff] | |
parent | f2f0b318508fec66fc07044b34f602960f399e5b [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 }