airspy / airspyone_host

AirSpy's usemode driver and associated tools
http://airspy.com
245 stars 88 forks source link

airspy_open_device() bugfix: use the code in airspy_list_device() #63

Closed jj1bdx closed 5 years ago

jj1bdx commented 5 years ago

This PR fixes the generation of SIGABRT in macOS 10.14.5 when trying to execute airspy_open_device() with a non-zero serial number, by using the code in airspy_list_devices() to compare the serial number. This fix allows the proper execution of airspy_open_sn() as well.

jj1bdx commented 5 years ago

This code also works OK on Ubuntu 18.04 LTS.

bvernoux commented 5 years ago

Thanks for the contribution (I have checked the code and tested it with success)

jj1bdx commented 5 years ago

@bvernoux Many thanks for merging the fix!