From 694237b1964cbcdf66e91086b1e59e60b2996c8c Mon Sep 17 00:00:00 2001 From: ling <1042585959@qq.com> Date: Wed, 20 Mar 2024 22:55:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- quectel_cm_5G/src/device.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/quectel_cm_5G/src/device.c b/quectel_cm_5G/src/device.c index ecf3c68..db2c7e0 100644 --- a/quectel_cm_5G/src/device.c +++ b/quectel_cm_5G/src/device.c @@ -445,11 +445,11 @@ int mhidevice_detect(char *qmichannel, char *usbnet_adapter, PROFILE_T *profile) } // 解决硬编码导致不兼容hv问题 - snprintf(path, sizeof(path), "%s/%s_IPCR", rootdir, d_name); + snprintf(path, sizeof(path), "%s/%s_IPCR", rootdir, ent->d_name); if (access(path, F_OK)) { - snprintf(path, sizeof(path), "%s/%s_QMI0", rootdir, d_name); + snprintf(path, sizeof(path), "%s/%s_QMI0", rootdir, ent->d_name); if (access(path, F_OK)) { - snprintf(path, sizeof(path), "%s/%s_MBIM", rootdir, d_name); + snprintf(path, sizeof(path), "%s/%s_MBIM", rootdir, ent->d_name); if (!access(path, F_OK)) software_interface = SOFTWARE_MBIM; }