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:
parent
94140bcbd7
commit
df015c1368
@ -25,7 +25,6 @@
|
|||||||
|
|
||||||
AirspyHFWorker::AirspyHFWorker(airspyhf_device_t* dev, SampleSinkFifo* sampleFifo, QObject* parent) :
|
AirspyHFWorker::AirspyHFWorker(airspyhf_device_t* dev, SampleSinkFifo* sampleFifo, QObject* parent) :
|
||||||
QObject(parent),
|
QObject(parent),
|
||||||
m_running(false),
|
|
||||||
m_dev(dev),
|
m_dev(dev),
|
||||||
m_convertBuffer(AIRSPYHF_BLOCKSIZE),
|
m_convertBuffer(AIRSPYHF_BLOCKSIZE),
|
||||||
m_sampleFifo(sampleFifo),
|
m_sampleFifo(sampleFifo),
|
||||||
@ -41,22 +40,14 @@ AirspyHFWorker::~AirspyHFWorker()
|
|||||||
stopWork();
|
stopWork();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool AirspyHFWorker::startWork()
|
void AirspyHFWorker::startWork()
|
||||||
{
|
{
|
||||||
qDebug("AirspyHFWorker::startWork");
|
qDebug("AirspyHFWorker::startWork");
|
||||||
airspyhf_error rc = (airspyhf_error) airspyhf_start(m_dev, rx_callback, this);
|
airspyhf_error rc = (airspyhf_error) airspyhf_start(m_dev, rx_callback, this);
|
||||||
|
|
||||||
if (rc == AIRSPYHF_SUCCESS)
|
if (rc != AIRSPYHF_SUCCESS) {
|
||||||
{
|
|
||||||
m_running = (airspyhf_is_streaming(m_dev) != 0);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
qCritical("AirspyHFWorker::run: failed to start Airspy HF Rx");
|
qCritical("AirspyHFWorker::run: failed to start Airspy HF Rx");
|
||||||
m_running = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return m_running;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void AirspyHFWorker::stopWork()
|
void AirspyHFWorker::stopWork()
|
||||||
@ -69,8 +60,6 @@ void AirspyHFWorker::stopWork()
|
|||||||
} else {
|
} else {
|
||||||
qDebug("AirspyHFWorker::run: failed to stop Airspy HF Rx");
|
qDebug("AirspyHFWorker::run: failed to stop Airspy HF Rx");
|
||||||
}
|
}
|
||||||
|
|
||||||
m_running = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void AirspyHFWorker::setSamplerate(uint32_t samplerate)
|
void AirspyHFWorker::setSamplerate(uint32_t samplerate)
|
||||||
|
@ -33,14 +33,13 @@ public:
|
|||||||
AirspyHFWorker(airspyhf_device_t* dev, SampleSinkFifo* sampleFifo, QObject* parent = 0);
|
AirspyHFWorker(airspyhf_device_t* dev, SampleSinkFifo* sampleFifo, QObject* parent = 0);
|
||||||
~AirspyHFWorker();
|
~AirspyHFWorker();
|
||||||
|
|
||||||
bool startWork();
|
void startWork();
|
||||||
void stopWork();
|
void stopWork();
|
||||||
void setSamplerate(uint32_t samplerate);
|
void setSamplerate(uint32_t samplerate);
|
||||||
void setLog2Decimation(unsigned int log2_decim);
|
void setLog2Decimation(unsigned int log2_decim);
|
||||||
void setIQOrder(bool iqOrder) { m_iqOrder = iqOrder; }
|
void setIQOrder(bool iqOrder) { m_iqOrder = iqOrder; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool m_running;
|
|
||||||
|
|
||||||
airspyhf_device_t* m_dev;
|
airspyhf_device_t* m_dev;
|
||||||
qint16 m_buf[2*AIRSPYHF_BLOCKSIZE];
|
qint16 m_buf[2*AIRSPYHF_BLOCKSIZE];
|
||||||
|
Loading…
Reference in New Issue
Block a user