mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2024-11-10 04:37:37 +01:00
android fix
This commit is contained in:
parent
72b895fc67
commit
cd71becd8a
@ -268,7 +268,7 @@ private:
|
||||
#ifndef __ANDROID__
|
||||
int err = airspy_open_sn(&_this->openDev, _this->selectedSerial);
|
||||
#else
|
||||
int err = airspy_open_sn(&_this->openDev, _this->devFd);
|
||||
int err = airspy_open_fd(&_this->openDev, _this->devFd);
|
||||
#endif
|
||||
if (err != 0) {
|
||||
char buf[1024];
|
||||
|
@ -132,7 +132,9 @@ public:
|
||||
#ifndef __ANDROID__
|
||||
int err = airspyhf_open_sn(&dev, serial);
|
||||
#else
|
||||
spdlog::warn("==== CALLING airspyhf_open_fd ====");
|
||||
int err = airspyhf_open_fd(&dev, devFd);
|
||||
spdlog::warn("==== CALLED airspyhf_open_fd => ({0}) ====", err);
|
||||
#endif
|
||||
if (err != 0) {
|
||||
char buf[1024];
|
||||
@ -244,7 +246,7 @@ private:
|
||||
#ifndef __ANDROID__
|
||||
int err = airspyhf_open_sn(&_this->openDev, _this->selectedSerial);
|
||||
#else
|
||||
int err = airspyhf_open_sn(&_this->openDev, _this->devFd);
|
||||
int err = airspyhf_open_fd(&_this->openDev, _this->devFd);
|
||||
#endif
|
||||
if (err != 0) {
|
||||
char buf[1024];
|
||||
|
@ -171,7 +171,7 @@ public:
|
||||
#ifndef __ANDROID__
|
||||
int oret = rtlsdr_open(&openDev, id);
|
||||
#else
|
||||
int oret = rtlsdr_open(&openDev, devFd);
|
||||
int oret = rtlsdr_open_fd(&openDev, devFd);
|
||||
#endif
|
||||
|
||||
if (oret < 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user