Skip to content

Commit

Permalink
Merge pull request #1410 from srcejon/fix_1409
Browse files Browse the repository at this point in the history
#1409 - Detect Packet Demods in MIMO device sets in ARPS Feature
  • Loading branch information
f4exb authored Sep 15, 2022
2 parents bea0583 + b639540 commit 38120a7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions plugins/feature/aprs/aprs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -459,8 +459,9 @@ void APRS::scanAvailableChannels()
for (const auto& deviceSet : deviceSets)
{
DSPDeviceSourceEngine *deviceSourceEngine = deviceSet->m_deviceSourceEngine;
DSPDeviceMIMOEngine *deviceMIMOEngine = deviceSet->m_deviceMIMOEngine;

if (deviceSourceEngine)
if (deviceSourceEngine || deviceMIMOEngine)
{
for (int chi = 0; chi < deviceSet->getNumberOfChannels(); chi++)
{
Expand Down Expand Up @@ -512,8 +513,9 @@ void APRS::handleChannelAdded(int deviceSetIndex, ChannelAPI *channel)
deviceSetIndex, channel->getIndexInDeviceSet(), qPrintable(channel->getURI()), channel);
DeviceSet *deviceSet = MainCore::instance()->getDeviceSets()[deviceSetIndex];
DSPDeviceSourceEngine *deviceSourceEngine = deviceSet->m_deviceSourceEngine;
DSPDeviceMIMOEngine *deviceMIMOEngine = deviceSet->m_deviceMIMOEngine;

if (deviceSourceEngine && APRSSettings::m_pipeURIs.contains(channel->getURI()))
if ((deviceSourceEngine || deviceMIMOEngine) && APRSSettings::m_pipeURIs.contains(channel->getURI()))
{
int chi = channel->getIndexInDeviceSet();

Expand Down

0 comments on commit 38120a7

Please sign in to comment.