mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-05-28 05:02:25 -04:00
REST API: fixed is not xxx capable device set bug
This commit is contained in:
parent
c1f1aa506e
commit
5f1adb2338
@ -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