Fixed stop acquisition not working when sample rate is too high

This commit is contained in:
f4exb 2015-09-27 15:47:51 +02:00
parent 8ca8547148
commit fd78dda566
3 changed files with 5 additions and 2 deletions

View File

@ -38,6 +38,7 @@ public:
int sendWait(Message& message, unsigned long msPollTime = 100); //!< Send message and waits for its process completion
Message* getMessage() const { return m_message; }
void storeMessage(Message& message) { m_message = &message; }
void done(int result = 0); //!< Processing of the message is complete
signals:

View File

@ -259,7 +259,7 @@ void HackRFGui::on_vga_valueChanged(int value)
void HackRFGui::updateHardware()
{
qDebug() << "AirspyGui::updateHardware";
qDebug() << "HackRFGui::updateHardware";
HackRFInput::MsgConfigureHackRF* message = HackRFInput::MsgConfigureHackRF::create( m_settings);
m_sampleSource->getInputMessageQueue()->push(message);
m_updateTimer.stop();

View File

@ -103,7 +103,9 @@ void DSPEngine::stopAcquistion()
{
qDebug() << "DSPEngine::stopAcquistion";
DSPAcquisitionStop cmd;
m_syncMessenger.sendWait(cmd);
m_syncMessenger.storeMessage(cmd);
handleSynchronousMessages();
if(m_dcOffsetCorrection)
{