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

Radiosonde demod: fixed reportdemod message pipes

This commit is contained in:
f4exb 2022-03-26 10:22:19 +01:00
parent b1543c2b98
commit 323ebb85f7

View File

@ -398,20 +398,17 @@ bool RadiosondeDemod::deserialize(const QByteArray& data)
void RadiosondeDemod::sendSampleRateToDemodAnalyzer()
{
QList<MessageQueue*> *messageQueues = MainCore::instance()->getMessagePipesLegacy().getMessageQueues(this, "reportdemod");
QList<ObjectPipe*> reportPipes;
MainCore::instance()->getMessagePipes().getMessagePipes(this, "reportdemod", reportPipes);
if (messageQueues)
for (const auto& pipe : reportPipes)
{
QList<MessageQueue*>::iterator it = messageQueues->begin();
for (; it != messageQueues->end(); ++it)
{
MainCore::MsgChannelDemodReport *msg = MainCore::MsgChannelDemodReport::create(
this,
RadiosondeDemodSettings::RADIOSONDEDEMOD_CHANNEL_SAMPLE_RATE
);
(*it)->push(msg);
}
MessageQueue *messageQueue = qobject_cast<MessageQueue*>(pipe->m_element);
MainCore::MsgChannelDemodReport *msg = MainCore::MsgChannelDemodReport::create(
this,
RadiosondeDemodSettings::RADIOSONDEDEMOD_CHANNEL_SAMPLE_RATE
);
messageQueue->push(msg);
}
}