mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-01 21:54:55 -04:00
REST API: config: fixes (2)
This commit is contained in:
@@ -318,19 +318,6 @@ void WebAPIAdapterBase::webapiUpdatePreset(
|
||||
|
||||
if (deviceWebAPIAdapter)
|
||||
{
|
||||
if (!force) // In PATCH mode you must find the exact device and deserialize its current settings to be able to patch it
|
||||
{
|
||||
const QByteArray *config = preset->findDeviceConfig(deviceId, deviceSerial, deviceSequence);
|
||||
|
||||
if (!config) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!deviceWebAPIAdapter->deserialize(*config)) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
deviceWebAPIAdapter->webapiSettingsPutPatch(
|
||||
force,
|
||||
deviceKeysIt->m_deviceKeys,
|
||||
|
||||
Reference in New Issue
Block a user