mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-01 21:54:55 -04:00
Channel local source (1)
This commit is contained in:
@@ -2345,6 +2345,20 @@ bool WebAPIRequestMapper::validateChannelSettings(
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else if (*channelType == "LocalSource")
|
||||
{
|
||||
if (channelSettings.getDirection() == 1)
|
||||
{
|
||||
QJsonObject localChannelSourceSettingsJsonObject = jsonObject["LocalSourceSettings"].toObject();
|
||||
channelSettingsKeys = localChannelSourceSettingsJsonObject.keys();
|
||||
channelSettings.setLocalSourceSettings(new SWGSDRangel::SWGLocalSourceSettings());
|
||||
channelSettings.getLocalSourceSettings()->fromJsonObject(localChannelSourceSettingsJsonObject);
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else if (*channelType == "RemoteSink")
|
||||
{
|
||||
if (channelSettings.getDirection() == 0)
|
||||
|
||||
Reference in New Issue
Block a user