kopia lustrzana https://github.com/f4exb/sdrangel
REST API: fixed is not xxx capable device set bug
rodzic
c1f1aa506e
commit
5f1adb2338
|
@ -1707,7 +1707,7 @@ int WebAPIAdapterGUI::devicesetChannelPost(
|
||||||
|
|
||||||
if (query.getDirection() == 0) // Single Rx
|
if (query.getDirection() == 0) // Single Rx
|
||||||
{
|
{
|
||||||
if (!deviceSet->m_deviceSourceEngine || !deviceSet->m_deviceMIMOEngine)
|
if (!deviceSet->m_deviceSourceEngine && !deviceSet->m_deviceMIMOEngine)
|
||||||
{
|
{
|
||||||
error.init();
|
error.init();
|
||||||
*error.getMessage() = QString("Device set at %1 is not a receive capable device set").arg(deviceSetIndex);
|
*error.getMessage() = QString("Device set at %1 is not a receive capable device set").arg(deviceSetIndex);
|
||||||
|
@ -1743,7 +1743,7 @@ int WebAPIAdapterGUI::devicesetChannelPost(
|
||||||
}
|
}
|
||||||
else if (query.getDirection() == 1) // single Tx
|
else if (query.getDirection() == 1) // single Tx
|
||||||
{
|
{
|
||||||
if (!deviceSet->m_deviceSinkEngine || !deviceSet->m_deviceMIMOEngine)
|
if (!deviceSet->m_deviceSinkEngine && !deviceSet->m_deviceMIMOEngine)
|
||||||
{
|
{
|
||||||
error.init();
|
error.init();
|
||||||
*error.getMessage() = QString("Device set at %1 is not a transmit capable device set").arg(deviceSetIndex);
|
*error.getMessage() = QString("Device set at %1 is not a transmit capable device set").arg(deviceSetIndex);
|
||||||
|
|
|
@ -1805,7 +1805,7 @@ int WebAPIAdapterSrv::devicesetChannelPost(
|
||||||
|
|
||||||
if (query.getDirection() == 0) // Single Rx
|
if (query.getDirection() == 0) // Single Rx
|
||||||
{
|
{
|
||||||
if (!deviceSet->m_deviceSourceEngine || !deviceSet->m_deviceMIMOEngine)
|
if (!deviceSet->m_deviceSourceEngine && !deviceSet->m_deviceMIMOEngine)
|
||||||
{
|
{
|
||||||
error.init();
|
error.init();
|
||||||
*error.getMessage() = QString("Device set at %1 is not a receive capable device set").arg(deviceSetIndex);
|
*error.getMessage() = QString("Device set at %1 is not a receive capable device set").arg(deviceSetIndex);
|
||||||
|
@ -1841,7 +1841,7 @@ int WebAPIAdapterSrv::devicesetChannelPost(
|
||||||
}
|
}
|
||||||
else if (query.getDirection() == 1) // single Tx
|
else if (query.getDirection() == 1) // single Tx
|
||||||
{
|
{
|
||||||
if (!deviceSet->m_deviceSinkEngine || !deviceSet->m_deviceMIMOEngine)
|
if (!deviceSet->m_deviceSinkEngine && !deviceSet->m_deviceMIMOEngine)
|
||||||
{
|
{
|
||||||
error.init();
|
error.init();
|
||||||
*error.getMessage() = QString("Device set at %1 is not a transmit capable device set").arg(deviceSetIndex);
|
*error.getMessage() = QString("Device set at %1 is not a transmit capable device set").arg(deviceSetIndex);
|
||||||
|
|
Ładowanie…
Reference in New Issue