mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-09-03 13:47:50 -04:00
Web API: fixed segfault on device and channel GETs
This commit is contained in:
parent
0dd36d4f3e
commit
8ecc209934
@ -1515,6 +1515,7 @@ void WebAPIRequestMapper::appendSettingsSubKeys(
|
|||||||
void WebAPIRequestMapper::resetDeviceSettings(SWGSDRangel::SWGDeviceSettings& deviceSettings)
|
void WebAPIRequestMapper::resetDeviceSettings(SWGSDRangel::SWGDeviceSettings& deviceSettings)
|
||||||
{
|
{
|
||||||
deviceSettings.cleanup();
|
deviceSettings.cleanup();
|
||||||
|
deviceSettings.setDeviceHwType(0);
|
||||||
deviceSettings.setFileSourceSettings(0);
|
deviceSettings.setFileSourceSettings(0);
|
||||||
deviceSettings.setRtlSdrSettings(0);
|
deviceSettings.setRtlSdrSettings(0);
|
||||||
deviceSettings.setLimeSdrInputSettings(0);
|
deviceSettings.setLimeSdrInputSettings(0);
|
||||||
@ -1524,6 +1525,7 @@ void WebAPIRequestMapper::resetDeviceSettings(SWGSDRangel::SWGDeviceSettings& de
|
|||||||
void WebAPIRequestMapper::resetChannelSettings(SWGSDRangel::SWGChannelSettings& channelSettings)
|
void WebAPIRequestMapper::resetChannelSettings(SWGSDRangel::SWGChannelSettings& channelSettings)
|
||||||
{
|
{
|
||||||
channelSettings.cleanup();
|
channelSettings.cleanup();
|
||||||
|
channelSettings.setChannelType(0);
|
||||||
channelSettings.setNfmDemodSettings(0);
|
channelSettings.setNfmDemodSettings(0);
|
||||||
channelSettings.setNfmModSettings(0);
|
channelSettings.setNfmModSettings(0);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user