mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-02 06:04:39 -04:00
Morse Decoder: implemented API. For #2112
This commit is contained in:
@@ -5265,6 +5265,11 @@ bool WebAPIRequestMapper::getFeatureSettings(
|
||||
featureSettings->setMapSettings(new SWGSDRangel::SWGMapSettings());
|
||||
featureSettings->getMapSettings()->fromJsonObject(settingsJsonObject);
|
||||
}
|
||||
else if (featureSettingsKey == "MorseDecoderSettings")
|
||||
{
|
||||
featureSettings->setMorseDecoderSettings(new SWGSDRangel::SWGMorseDecoderSettings());
|
||||
featureSettings->getMorseDecoderSettings()->fromJsonObject(settingsJsonObject);
|
||||
}
|
||||
else if (featureSettingsKey == "PERTesterSettings")
|
||||
{
|
||||
featureSettings->setPerTesterSettings(new SWGSDRangel::SWGPERTesterSettings());
|
||||
@@ -5405,6 +5410,11 @@ bool WebAPIRequestMapper::getFeatureActions(
|
||||
featureActions->setDemodAnalyzerActions(new SWGSDRangel::SWGDemodAnalyzerActions());
|
||||
featureActions->getDemodAnalyzerActions()->fromJsonObject(actionsJsonObject);
|
||||
}
|
||||
else if (featureActionsKey == "MorseDecoderActions")
|
||||
{
|
||||
featureActions->setMorseDecoderActions(new SWGSDRangel::SWGMorseDecoderActions());
|
||||
featureActions->getMorseDecoderActions()->fromJsonObject(actionsJsonObject);
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user