mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-09 09:25:07 -04:00
REST API: config: added ATV demodulator
This commit is contained in:
@@ -55,6 +55,7 @@ const QMap<QString, QString> WebAPIRequestMapper::m_channelURIToSettingsKey = {
|
||||
{"sdrangel.channel.bfm", "BFMDemodSettings"},
|
||||
{"sdrangel.channel.chanalyzer", "ChannelAnalyzerSettings"},
|
||||
{"sdrangel.channel.chanalyzerng", "ChannelAnalyzerSettings"}, // remap
|
||||
{"sdrangel.channel.demodatv", "ATVDemodSettings"},
|
||||
{"sdrangel.channel.dsddemod", "DSDDemodSettings"},
|
||||
{"sdrangel.channeltx.filesrc", "FileSourceSettings"},
|
||||
{"sdrangel.channel.freedvdemod", "FreeDVDemodSettings"},
|
||||
@@ -117,6 +118,7 @@ const QMap<QString, QString> WebAPIRequestMapper::m_deviceIdToSettingsKey = {
|
||||
const QMap<QString, QString> WebAPIRequestMapper::m_channelTypeToSettingsKey = {
|
||||
{"AMDemod", "AMDemodSettings"},
|
||||
{"AMMod", "AMModSettings"},
|
||||
{"ATVDemod", "ATVDemodSettings"},
|
||||
{"ATVMod", "ATVModSettings"},
|
||||
{"BFMDemod", "BFMDemodSettings"},
|
||||
{"ChannelAnalyzer", "ChannelAnalyzerSettings"},
|
||||
@@ -2429,6 +2431,11 @@ bool WebAPIRequestMapper::getChannel(
|
||||
channelSettings->setAmModSettings(new SWGSDRangel::SWGAMModSettings());
|
||||
channelSettings->getAmModSettings()->fromJsonObject(settingsJsonObject);
|
||||
}
|
||||
else if (channelSettingsKey == "ATVDemodSettings")
|
||||
{
|
||||
channelSettings->setAtvDemodSettings(new SWGSDRangel::SWGATVDemodSettings());
|
||||
channelSettings->getAtvDemodSettings()->fromJsonObject(settingsJsonObject);
|
||||
}
|
||||
else if (channelSettingsKey == "ATVModSettings")
|
||||
{
|
||||
channelSettings->setAtvModSettings(new SWGSDRangel::SWGATVModSettings());
|
||||
|
||||
Reference in New Issue
Block a user