mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-26 01:39:05 -05: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)
|
||||
{
|
||||
deviceSettings.cleanup();
|
||||
deviceSettings.setDeviceHwType(0);
|
||||
deviceSettings.setFileSourceSettings(0);
|
||||
deviceSettings.setRtlSdrSettings(0);
|
||||
deviceSettings.setLimeSdrInputSettings(0);
|
||||
@ -1524,6 +1525,7 @@ void WebAPIRequestMapper::resetDeviceSettings(SWGSDRangel::SWGDeviceSettings& de
|
||||
void WebAPIRequestMapper::resetChannelSettings(SWGSDRangel::SWGChannelSettings& channelSettings)
|
||||
{
|
||||
channelSettings.cleanup();
|
||||
channelSettings.setChannelType(0);
|
||||
channelSettings.setNfmDemodSettings(0);
|
||||
channelSettings.setNfmModSettings(0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user