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