android fix

This commit is contained in:
AlexandreRouma 2022-09-03 00:38:18 +02:00
parent 72b895fc67
commit cd71becd8a
3 changed files with 5 additions and 3 deletions

View File

@ -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];

View File

@ -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];

View File

@ -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) {