diff options
-rw-r--r-- | android/examples/unrooted_android.c | 7 | ||||
-rw-r--r-- | libusb/version_nano.h | 2 |
2 files changed, 4 insertions, 5 deletions
diff --git a/android/examples/unrooted_android.c b/android/examples/unrooted_android.c index e4d52ba..33793c7 100644 --- a/android/examples/unrooted_android.c +++ b/android/examples/unrooted_android.c @@ -24,12 +24,12 @@ /* * This example creates a shared object which can be accessed over JNA or JNI from Java or Kotlin in Android. - * Hint: If you are using Android Studio set the "Debug type" to "Java Only" to receive debug messages. + * Hint: If you are using Android Studio, set the "Debug type" to "Java Only" to receive debug messages. */ /* * Usage: - * First you have to connect your USB device from the Java side. + * First, you have to connect your USB device from the Java side. * Use the android.hardware.usb class to find the USB device, claim the interfaces, and open the usb_device_connection * Obtain the native File Descriptor --> usb_device_connection.getFileDescriptor() * Pass the received int value to the unrooted_usb_description method of this code (over JNA) @@ -270,7 +270,7 @@ static void print_device(libusb_device *dev, libusb_device_handle *handle) } -// fileDescriptor = is the native File Descriptor obtained in Java and transfered to native over JNA for Example. +/* fileDescriptor = the native file descriptor obtained in Java and transferred to native over JNA, for example */ int unrooted_usb_description(int fileDescriptor) { libusb_context *ctx = NULL; @@ -298,4 +298,3 @@ int unrooted_usb_description(int fileDescriptor) print_device(libusb_get_device(devh), devh); return r; } - diff --git a/libusb/version_nano.h b/libusb/version_nano.h index f38faa3..3806cf8 100644 --- a/libusb/version_nano.h +++ b/libusb/version_nano.h @@ -1 +1 @@ -#define LIBUSB_NANO 11707 +#define LIBUSB_NANO 11708 |