rigol-ds1xx2: newer Linux kernels have USBTMC in /sys/class/usbmisc
This commit is contained in:
parent
f51acd69d7
commit
da970d24ec
|
@ -307,6 +307,7 @@ static GSList *scan(GSList *options)
|
||||||
if (probe_port(port, &devices) == SR_ERR_MALLOC)
|
if (probe_port(port, &devices) == SR_ERR_MALLOC)
|
||||||
return NULL;
|
return NULL;
|
||||||
} else {
|
} else {
|
||||||
|
if (!(dir = g_dir_open("/sys/class/usbmisc/", 0, NULL)))
|
||||||
if (!(dir = g_dir_open("/sys/class/usb/", 0, NULL)))
|
if (!(dir = g_dir_open("/sys/class/usb/", 0, NULL)))
|
||||||
return NULL;
|
return NULL;
|
||||||
while ((dev_name = g_dir_read_name(dir))) {
|
while ((dev_name = g_dir_read_name(dir))) {
|
||||||
|
|
Loading…
Reference in New Issue