mirror of
https://github.com/M4TH1EU/DJI-FCC-HACK.git
synced 2025-09-13 15:43:04 +00:00
added some logging
This commit is contained in:
parent
d9d20b9d9b
commit
82ee82e75a
@ -109,6 +109,7 @@ class MainActivity : ComponentActivity() {
|
|||||||
private fun refreshUsbConnection() {
|
private fun refreshUsbConnection() {
|
||||||
if (usbManager.deviceList.isNotEmpty()) {
|
if (usbManager.deviceList.isNotEmpty()) {
|
||||||
val device: UsbDevice = usbManager.deviceList.values.first()
|
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)
|
// Check to be sure the device is the initialized DJI Remote (and not another USB device)
|
||||||
if (device.productId != 4128) {
|
if (device.productId != 4128) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user