1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-02 22:14:45 -04:00

REST API: updates for MIMO (3)

This commit is contained in:
f4exb
2019-12-23 23:00:11 +01:00
parent 0a9e7f5154
commit a0830f8ba2
3 changed files with 294 additions and 4 deletions
+20 -4
View File
@@ -857,11 +857,27 @@ void DeviceAPI::renumerateChannels()
}
else if (m_streamType == StreamMIMO)
{
for (int i = 0; i < m_mimoChannelAPIs.size(); ++i)
int index = 0;
for (; index < m_channelSinkAPIs.size(); ++index)
{
m_mimoChannelAPIs.at(i)->setIndexInDeviceSet(i);
m_mimoChannelAPIs.at(i)->setDeviceSetIndex(m_deviceTabIndex);
m_mimoChannelAPIs.at(i)->setDeviceAPI(this);
m_channelSinkAPIs.at(index)->setIndexInDeviceSet(index);
m_channelSinkAPIs.at(index)->setDeviceSetIndex(m_deviceTabIndex);
m_channelSinkAPIs.at(index)->setDeviceAPI(this);
}
for (; index < m_channelSourceAPIs.size() + m_channelSinkAPIs.size(); ++index)
{
m_channelSourceAPIs.at(index)->setIndexInDeviceSet(index);
m_channelSourceAPIs.at(index)->setDeviceSetIndex(m_deviceTabIndex);
m_channelSourceAPIs.at(index)->setDeviceAPI(this);
}
for (; index < m_mimoChannelAPIs.size() + m_channelSourceAPIs.size() + m_channelSinkAPIs.size(); ++index)
{
m_mimoChannelAPIs.at(index)->setIndexInDeviceSet(index);
m_mimoChannelAPIs.at(index)->setDeviceSetIndex(m_deviceTabIndex);
m_mimoChannelAPIs.at(index)->setDeviceAPI(this);
}
}
}