From eb56aec47d58bba01f16850e885406e482891edd Mon Sep 17 00:00:00 2001 From: modehua Date: Mon, 9 Oct 2023 05:12:21 -0700 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=8C=82=E8=BD=BD=E4=B8=8D?= =?UTF-8?q?=E4=B8=8A=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- UsbScanner.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/UsbScanner.cpp b/UsbScanner.cpp index 423009e..cc83512 100644 --- a/UsbScanner.cpp +++ b/UsbScanner.cpp @@ -479,7 +479,7 @@ bool UsbScanner::is_connect() void UsbScanner::mount_usb_device() { - /////没用到 + if ((access("/dev/ffs-camtp/ep0", F_OK)) != -1) { printf("exit mount_usb_device !!!\r\n"); @@ -502,8 +502,8 @@ void UsbScanner::mount_usb_device() mkdir functions/ffs.camtp\n \ mkdir strings/0x409\n \ mkdir configs/c.1/strings/0x409\n \ - echo" + pid +"> idProduct\n \ - echo" + vid +"> idVendor\n \ + echo 0x0300 > idProduct\n \ + echo 0x3072 > idVendor\n \ echo \"01234567AABBCCDDEE\" > strings/0x409/serialnumber\n \ echo \"Holdtecs Technologies\" > strings/0x409/manufacturer\n \ echo \"The Holdtecs Product !\" > strings/0x409/product\n \