mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-11-13 03:33:23 -05:00
REST API: fixed is not xxx capable device set bug
This commit is contained in:
parent
b11f5544fe
commit
664dc41550
@ -1707,7 +1707,7 @@ int WebAPIAdapterGUI::devicesetChannelPost(
|
||||
|
||||
if (query.getDirection() == 0) // Single Rx
|
||||
{
|
||||
if (!deviceSet->m_deviceSourceEngine || !deviceSet->m_deviceMIMOEngine)
|
||||
if (!deviceSet->m_deviceSourceEngine && !deviceSet->m_deviceMIMOEngine)
|
||||
{
|
||||
error.init();
|
||||
*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
|
||||
{
|
||||
if (!deviceSet->m_deviceSinkEngine || !deviceSet->m_deviceMIMOEngine)
|
||||
if (!deviceSet->m_deviceSinkEngine && !deviceSet->m_deviceMIMOEngine)
|
||||
{
|
||||
error.init();
|
||||
*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 (!deviceSet->m_deviceSourceEngine || !deviceSet->m_deviceMIMOEngine)
|
||||
if (!deviceSet->m_deviceSourceEngine && !deviceSet->m_deviceMIMOEngine)
|
||||
{
|
||||
error.init();
|
||||
*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
|
||||
{
|
||||
if (!deviceSet->m_deviceSinkEngine || !deviceSet->m_deviceMIMOEngine)
|
||||
if (!deviceSet->m_deviceSinkEngine && !deviceSet->m_deviceMIMOEngine)
|
||||
{
|
||||
error.init();
|
||||
*error.getMessage() = QString("Device set at %1 is not a transmit capable device set").arg(deviceSetIndex);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user