mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-02 06:04:39 -04:00
Web API: fixed TestSource device setting
This commit is contained in:
@@ -1984,6 +1984,21 @@ bool WebAPIRequestMapper::validateDeviceSettings(
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else if (*deviceHwType == "TestSource")
|
||||
{
|
||||
if (jsonObject.contains("testSourceSettings") && jsonObject["testSourceSettings"].isObject())
|
||||
{
|
||||
QJsonObject testSourceSettingsJsonObject = jsonObject["testSourceSettings"].toObject();
|
||||
deviceSettingsKeys = testSourceSettingsJsonObject.keys();
|
||||
deviceSettings.setTestSourceSettings(new SWGSDRangel::SWGTestSourceSettings());
|
||||
deviceSettings.getTestSourceSettings()->fromJsonObject(testSourceSettingsJsonObject);
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user