Skip to content

Commit

Permalink
libairspy fix error airspy_start_rx() failed: AIRSPY_ERROR_LIBUSB (-1…
Browse files Browse the repository at this point in the history
…000) with board with serial number parameter -s

Updated lib version to 1.0.4
  • Loading branch information
bvernoux committed Mar 18, 2015
1 parent 87d8930 commit 49df6bf
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
14 changes: 14 additions & 0 deletions libairspy/src/airspy.c
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,20 @@ static void airspy_open_device(airspy_device_t* device,

if (strncmp((const char*)serial_number, serial_number_expected, SERIAL_AIRSPY_EXPECTED_SIZE) == 0)
{
result = libusb_set_configuration(dev_handle, 1);
if (result != 0)
{
libusb_close(dev_handle);
*libusb_dev_handle = NULL;
continue;
}
result = libusb_claim_interface(dev_handle, 0);
if (result != 0)
{
libusb_close(dev_handle);
*libusb_dev_handle = NULL;
continue;
}
break;
} else
{
Expand Down
4 changes: 2 additions & 2 deletions libairspy/src/airspy.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSI
#include <stdint.h>
#include "airspy_commands.h"

#define AIRSPY_VERSION "1.0.3"
#define AIRSPY_VERSION "1.0.4"
#define AIRSPY_VER_MAJOR 1
#define AIRSPY_VER_MINOR 0
#define AIRSPY_VER_REVISION 3
#define AIRSPY_VER_REVISION 4

#ifdef _WIN32
#define ADD_EXPORTS
Expand Down

0 comments on commit 49df6bf

Please sign in to comment.