mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-02 22:14:45 -04:00
SSB demod: implemeted WEB API
This commit is contained in:
@@ -2038,6 +2038,20 @@ bool WebAPIRequestMapper::validateChannelSettings(
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else if (*channelType == "SSBDemod")
|
||||
{
|
||||
if (channelSettings.getTx() == 0)
|
||||
{
|
||||
QJsonObject ssbDemodSettingsJsonObject = jsonObject["SSBDemodSettings"].toObject();
|
||||
channelSettingsKeys = ssbDemodSettingsJsonObject.keys();
|
||||
channelSettings.setSsbDemodSettings(new SWGSDRangel::SWGSSBDemodSettings());
|
||||
channelSettings.getSsbDemodSettings()->fromJsonObject(ssbDemodSettingsJsonObject);
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else if (*channelType == "SSBMod")
|
||||
{
|
||||
if (channelSettings.getTx() != 0)
|
||||
|
||||
Reference in New Issue
Block a user