forked from sdr/rtl-sdr
Apply SatNOGS patch: always reset
From https://gitea.osmocom.org/kerel-fs/rtl-sdr/src/branch/satnogs/debian/patches/always-reset-usb-device.patch
This commit is contained in:
parent
2f42e6e2e6
commit
85e4edb15a
|
@ -1531,11 +1531,9 @@ int rtlsdr_open(rtlsdr_dev_t **out_dev, uint32_t index)
|
|||
|
||||
dev->rtl_xtal = DEF_RTL_XTAL_FREQ;
|
||||
|
||||
/* perform a dummy write, if it fails, reset the device */
|
||||
if (rtlsdr_write_reg(dev, USBB, USB_SYSCTL, 0x09, 1) < 0) {
|
||||
fprintf(stderr, "Resetting device...\n");
|
||||
libusb_reset_device(dev->devh);
|
||||
}
|
||||
/* Reset the device before initialization */
|
||||
fprintf(stderr, "Resetting device...\n");
|
||||
libusb_reset_device(dev->devh);
|
||||
|
||||
rtlsdr_init_baseband(dev);
|
||||
dev->dev_lost = 0;
|
||||
|
|
Loading…
Reference in New Issue