File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 ) {
Original file line number Diff line number Diff line change 1414
1515PLATFORM = sys .platform
1616
17- if getenv ('LIBLINK ' ):
17+ if getenv ('BUILD_ANDROID ' ):
1818 PLATFORM = 'android'
1919
20- print (environ )
21-
2220if PLATFORM != 'android' :
2321 cflags = environ .get ('CFLAGS' , '' )
2422 ldflags = environ .get ('LDFLAGS' , '' )
You can’t perform that action at this time.
0 commit comments