1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 01:39:05 -05:00

AirspyHF: Remove unused variables

This commit is contained in:
Jon Beniston 2022-09-21 21:06:35 +01:00
parent 94140bcbd7
commit df015c1368
2 changed files with 3 additions and 15 deletions

View File

@ -25,7 +25,6 @@
AirspyHFWorker::AirspyHFWorker(airspyhf_device_t* dev, SampleSinkFifo* sampleFifo, QObject* parent) :
QObject(parent),
m_running(false),
m_dev(dev),
m_convertBuffer(AIRSPYHF_BLOCKSIZE),
m_sampleFifo(sampleFifo),
@ -41,22 +40,14 @@ AirspyHFWorker::~AirspyHFWorker()
stopWork();
}
bool AirspyHFWorker::startWork()
void AirspyHFWorker::startWork()
{
qDebug("AirspyHFWorker::startWork");
airspyhf_error rc = (airspyhf_error) airspyhf_start(m_dev, rx_callback, this);
if (rc == AIRSPYHF_SUCCESS)
{
m_running = (airspyhf_is_streaming(m_dev) != 0);
}
else
{
if (rc != AIRSPYHF_SUCCESS) {
qCritical("AirspyHFWorker::run: failed to start Airspy HF Rx");
m_running = false;
}
return m_running;
}
void AirspyHFWorker::stopWork()
@ -69,8 +60,6 @@ void AirspyHFWorker::stopWork()
} else {
qDebug("AirspyHFWorker::run: failed to stop Airspy HF Rx");
}
m_running = false;
}
void AirspyHFWorker::setSamplerate(uint32_t samplerate)

View File

@ -33,14 +33,13 @@ public:
AirspyHFWorker(airspyhf_device_t* dev, SampleSinkFifo* sampleFifo, QObject* parent = 0);
~AirspyHFWorker();
bool startWork();
void startWork();
void stopWork();
void setSamplerate(uint32_t samplerate);
void setLog2Decimation(unsigned int log2_decim);
void setIQOrder(bool iqOrder) { m_iqOrder = iqOrder; }
private:
bool m_running;
airspyhf_device_t* m_dev;
qint16 m_buf[2*AIRSPYHF_BLOCKSIZE];