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

Device API: fixed renumerateChannels in case of MIMO

This commit is contained in:
f4exb 2020-07-13 04:12:15 +02:00
parent 83183b8a6a
commit ee0655a851

View File

@ -867,16 +867,18 @@ void DeviceAPI::renumerateChannels()
for (; index < m_channelSourceAPIs.size() + m_channelSinkAPIs.size(); ++index) for (; index < m_channelSourceAPIs.size() + m_channelSinkAPIs.size(); ++index)
{ {
m_channelSourceAPIs.at(index)->setIndexInDeviceSet(index); int sourceIndex = index - m_channelSinkAPIs.size();
m_channelSourceAPIs.at(index)->setDeviceSetIndex(m_deviceTabIndex); m_channelSourceAPIs.at(sourceIndex)->setIndexInDeviceSet(index);
m_channelSourceAPIs.at(index)->setDeviceAPI(this); m_channelSourceAPIs.at(sourceIndex)->setDeviceSetIndex(m_deviceTabIndex);
m_channelSourceAPIs.at(sourceIndex)->setDeviceAPI(this);
} }
for (; index < m_mimoChannelAPIs.size() + m_channelSourceAPIs.size() + m_channelSinkAPIs.size(); ++index) for (; index < m_mimoChannelAPIs.size() + m_channelSourceAPIs.size() + m_channelSinkAPIs.size(); ++index)
{ {
m_mimoChannelAPIs.at(index)->setIndexInDeviceSet(index); int mimoIndex = index - m_channelSourceAPIs.size() - m_channelSinkAPIs.size();
m_mimoChannelAPIs.at(index)->setDeviceSetIndex(m_deviceTabIndex); m_mimoChannelAPIs.at(mimoIndex)->setIndexInDeviceSet(index);
m_mimoChannelAPIs.at(index)->setDeviceAPI(this); m_mimoChannelAPIs.at(mimoIndex)->setDeviceSetIndex(m_deviceTabIndex);
m_mimoChannelAPIs.at(mimoIndex)->setDeviceAPI(this);
} }
} }
} }