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:
parent
14ec3c01d8
commit
29677cba06
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user