Skip to content

Commit 5b39f23

Browse files
committed
updated
1 parent 14379f8 commit 5b39f23

2 files changed

Lines changed: 7 additions & 9 deletions

File tree

android/libbladerf/src/libusb.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,12 @@
141141
struct libusb_device_descriptor desc;
142142
libusb_context *context;
143143

144-
// status = libusb_set_option(NULL, LIBUSB_OPTION_WEAK_AUTHORITY, NULL);
145-
// if (status){
146-
// log_error("Could not initialize libusb: %s\n",
147-
// libusb_error_name(status));
148-
// return error_conv(status);
149-
// }
144+
status = libusb_set_option(NULL, LIBUSB_OPTION_WEAK_AUTHORITY, NULL);
145+
if (status){
146+
log_error("Could not initialize libusb: %s\n",
147+
libusb_error_name(status));
148+
return error_conv(status);
149+
}
150150

151151
status = libusb_init(&context);
152152
if (status) {

setup.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,9 @@
1414

1515
PLATFORM = sys.platform
1616

17-
if getenv('LIBLINK'):
17+
if getenv('BUILD_ANDROID'):
1818
PLATFORM = 'android'
1919

20-
print(environ)
21-
2220
if PLATFORM != 'android':
2321
cflags = environ.get('CFLAGS', '')
2422
ldflags = environ.get('LDFLAGS', '')

0 commit comments

Comments
 (0)