From 0698321f92c019cee019b3290d06301f2eb1026c Mon Sep 17 00:00:00 2001 From: dangoaurelius Date: Thu, 26 Dec 2024 17:33:12 +0200 Subject: [PATCH] fixed name of transfer count field in function __libusb_callback --- fobos/fobos_sdr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fobos/fobos_sdr.c b/fobos/fobos_sdr.c index 4545788..6242975 100644 --- a/fobos/fobos_sdr.c +++ b/fobos/fobos_sdr.c @@ -1149,7 +1149,7 @@ static void LIBUSB_CALL _libusb_callback(struct libusb_transfer *transfer) { dev->transfer_errors++; } - if (dev->transfer_errors >= (int)dev->transfer_buf_count || LIBUSB_TRANSFER_NO_DEVICE == transfer->status) + if (dev->transfer_errors >= (int)dev->transfers_count || LIBUSB_TRANSFER_NO_DEVICE == transfer->status) { dev->dev_lost = 1; fobos_sdr_cancel_async(dev);