1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-03-11 14:58:47 -04:00

Local Sink/Input: REST API fixes

This commit is contained in:
f4exb 2019-05-02 09:54:08 +02:00
parent 9e5003eab9
commit d841c4e554
3 changed files with 5 additions and 1 deletions

View File

@ -346,6 +346,8 @@ int LocalSink::webapiSettingsGet(
QString& errorMessage)
{
(void) errorMessage;
response.setLocalSinkSettings(new SWGSDRangel::SWGLocalSinkSettings());
response.getLocalSinkSettings()->init();
webapiFormatChannelSettings(response, m_settings);
return 200;
}

View File

@ -389,7 +389,8 @@ int LocalInput::webapiReportGet(
void LocalInput::webapiFormatDeviceReport(SWGSDRangel::SWGDeviceReport& response)
{
(void) response;
response.getLocalInputReport()->setCenterFrequency(m_centerFrequency);
response.getLocalInputReport()->setSampleRate(m_sampleRate);
}
void LocalInput::webapiReverseSendSettings(QList<QString>& deviceSettingsKeys, const LocalInputSettings& settings, bool force)

View File

@ -25,6 +25,7 @@
<file>webapi/doc/swagger/include/Perseus.yaml</file>
<file>webapi/doc/swagger/include/PlutoSdr.yaml</file>
<file>webapi/doc/swagger/include/RtlSdr.yaml</file>
<file>webapi/doc/swagger/include/LocalSink.yaml</file>
<file>webapi/doc/swagger/include/RemoteSink.yaml</file>
<file>webapi/doc/swagger/include/RemoteSource.yaml</file>
<file>webapi/doc/swagger/include/RemoteInput.yaml</file>