1
0
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:
f4exb
2024-05-21 02:43:51 +02:00
parent 7772ac405c
commit 176fe034ea
21 changed files with 1255 additions and 42 deletions
+10
View File
@@ -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;