1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-25 17:28:50 -05:00

Web API: fixed TestSource device setting

This commit is contained in:
f4exb 2018-08-06 13:13:31 +00:00
parent 14ec3c01d8
commit 29677cba06

View File

@ -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;