mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-13 19:28:41 -04:00
Demod Analyzer plugin: channel selection via api
Problem: It's not possible to select channel in Demod Analyzer feature
via api.
Solution:
Add new "action" into
POST /sdrangel/featureset/feature/{featureIndex}/actions
endpoint
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
|
||||
#include <boost/lexical_cast.hpp>
|
||||
|
||||
#include "SWGDemodAnalyzerActions.h"
|
||||
#include "httpdocrootsettings.h"
|
||||
#include "webapirequestmapper.h"
|
||||
#include "webapiutils.h"
|
||||
@@ -5375,6 +5376,11 @@ bool WebAPIRequestMapper::getFeatureActions(
|
||||
featureActions->setVorLocalizerActions(new SWGSDRangel::SWGVORLocalizerActions());
|
||||
featureActions->getVorLocalizerActions()->fromJsonObject(actionsJsonObject);
|
||||
}
|
||||
else if (featureActionsKey == "DemodAnalyzerActions")
|
||||
{
|
||||
featureActions->setDemodAnalyzerActions(new SWGSDRangel::SWGDemodAnalyzerActions());
|
||||
featureActions->getDemodAnalyzerActions()->fromJsonObject(actionsJsonObject);
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user