added some logging

This commit is contained in:
Mathieu Broillet 2025-07-06 09:29:09 +02:00
parent d9d20b9d9b
commit 82ee82e75a
Signed by: mathieub
GPG Key ID: 4428608CDA3A98D3

View File

@ -109,6 +109,7 @@ class MainActivity : ComponentActivity() {
private fun refreshUsbConnection() {
if (usbManager.deviceList.isNotEmpty()) {
val device: UsbDevice = usbManager.deviceList.values.first()
Log.d("USB_CONNECTION", device.vendorId.toString() + ":" + device.productId.toString())
// Check to be sure the device is the initialized DJI Remote (and not another USB device)
if (device.productId != 4128) {