kopia lustrzana https://github.com/f4exb/sdrangel
Web API: fixed segfault on device and channel GETs
rodzic
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);
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue