mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-04 23:14:47 -04:00
BFM demod: implemeted WEB API
This commit is contained in:
@@ -1875,6 +1875,20 @@ bool WebAPIRequestMapper::validateChannelSettings(
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else if (*channelType == "BFMDemod")
|
||||
{
|
||||
if (channelSettings.getTx() == 0)
|
||||
{
|
||||
QJsonObject bfmDemodSettingsJsonObject = jsonObject["BFMDemodSettings"].toObject();
|
||||
channelSettingsKeys = bfmDemodSettingsJsonObject.keys();
|
||||
channelSettings.setBfmDemodSettings(new SWGSDRangel::SWGBFMDemodSettings());
|
||||
channelSettings.getBfmDemodSettings()->fromJsonObject(bfmDemodSettingsJsonObject);
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else if (*channelType == "NFMDemod")
|
||||
{
|
||||
if (channelSettings.getTx() == 0)
|
||||
|
||||
Reference in New Issue
Block a user