mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2024-12-25 10:28:28 +01:00
Fixed airspy_source bug
This commit is contained in:
parent
27eb2571a4
commit
7ff8f3f7b9
@ -105,15 +105,16 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
void selectBySerial(uint64_t serial) {
|
void selectBySerial(uint64_t serial) {
|
||||||
selectedSerial = serial;
|
|
||||||
airspy_device* dev;
|
airspy_device* dev;
|
||||||
int err = airspy_open_sn(&dev, selectedSerial);
|
int err = airspy_open_sn(&dev, serial);
|
||||||
if (err != 0) {
|
if (err != 0) {
|
||||||
char buf[1024];
|
char buf[1024];
|
||||||
sprintf(buf, "%016" PRIX64, selectedSerial);
|
sprintf(buf, "%016" PRIX64, serial);
|
||||||
spdlog::error("Could not open Airspy HF+ {0}", buf);
|
spdlog::error("Could not open Airspy HF+ {0}", buf);
|
||||||
|
selectedSerial = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
selectedSerial = serial;
|
||||||
|
|
||||||
uint32_t sampleRates[256];
|
uint32_t sampleRates[256];
|
||||||
airspy_get_samplerates(dev, sampleRates, 0);
|
airspy_get_samplerates(dev, sampleRates, 0);
|
||||||
|
@ -33,10 +33,6 @@
|
|||||||
#include <options.h>
|
#include <options.h>
|
||||||
#include <gui/colormaps.h>
|
#include <gui/colormaps.h>
|
||||||
|
|
||||||
|
|
||||||
#include <gui/widgets/file_select.h>
|
|
||||||
#include <gui/widgets/folder_select.h>
|
|
||||||
|
|
||||||
// const int FFTSizes[] = {
|
// const int FFTSizes[] = {
|
||||||
// 65536,
|
// 65536,
|
||||||
// 32768,
|
// 32768,
|
||||||
|
Loading…
Reference in New Issue
Block a user