Use the rtl_sdr unil function instead
This commit is contained in:
parent
286f12cc55
commit
ae57e25a9a
@ -347,13 +347,8 @@ void modesInitRTLSDR(void) {
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
if(Modes.serial != NULL){
|
if(Modes.serial != NULL){
|
||||||
for (j = 0; j < device_count; j++) {
|
Modes.dev_index = rtlsdr_get_index_by_serial(Modes.serial);
|
||||||
rtlsdr_get_device_usb_strings(j, vendor, product, serial);
|
printf("Found device with serial %s; selecting device index %d\n",Modes.serial,Modes.dev_index);
|
||||||
if(0 == strcmp(Modes.serial,serial)){
|
|
||||||
printf("Found device with serial %s; selecting device index %d\n",Modes.serial,j);
|
|
||||||
Modes.dev_index = j;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf(stderr, "Found %d device(s):\n", device_count);
|
fprintf(stderr, "Found %d device(s):\n", device_count);
|
||||||
|
Loading…
Reference in New Issue
Block a user