mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-07-31 13:02:27 -04:00
ChannelWebAPIUtils::patchDeviceSetting: Add support for sinks and MIMO.
This commit is contained in:
parent
56bd20d59b
commit
4510f40729
@ -1319,9 +1319,15 @@ bool ChannelWebAPIUtils::patchDeviceSetting(unsigned int deviceIndex, const QStr
|
|||||||
SWGSDRangel::SWGErrorResponse errorResponse2;
|
SWGSDRangel::SWGErrorResponse errorResponse2;
|
||||||
delete jsonObj;
|
delete jsonObj;
|
||||||
|
|
||||||
DeviceSampleSource *source = deviceSet->m_deviceAPI->getSampleSource();
|
if (DeviceSampleSource *source = deviceSet->m_deviceAPI->getSampleSource()) {
|
||||||
|
httpRC = source->webapiSettingsPutPatch(false, deviceSettingsKeys, deviceSettingsResponse, *errorResponse2.getMessage());
|
||||||
httpRC = source->webapiSettingsPutPatch(false, deviceSettingsKeys, deviceSettingsResponse, *errorResponse2.getMessage());
|
} else if (DeviceSampleSink *sink = deviceSet->m_deviceAPI->getSampleSink()) {
|
||||||
|
httpRC = sink->webapiSettingsPutPatch(false, deviceSettingsKeys, deviceSettingsResponse, *errorResponse2.getMessage());
|
||||||
|
} else if (DeviceSampleMIMO *mimo = deviceSet->m_deviceAPI->getSampleMIMO()) {
|
||||||
|
httpRC = mimo->webapiSettingsPutPatch(false, deviceSettingsKeys, deviceSettingsResponse, *errorResponse2.getMessage());
|
||||||
|
} else {
|
||||||
|
httpRC = 404;
|
||||||
|
}
|
||||||
|
|
||||||
if (httpRC/100 == 2)
|
if (httpRC/100 == 2)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user