1
0
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:
f4exb
2019-05-10 00:34:35 +02:00
parent 7e128335f1
commit 6d5d77dc6c
287 changed files with 454 additions and 298 deletions
+14
View File
@@ -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)