mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-02 14:04:46 -04:00
LimeRFE USB support: REST API: SWR handling fixes
This commit is contained in:
@@ -2587,6 +2587,16 @@ bool WebAPIRequestMapper::validateLimeRFEConfig(SWGSDRangel::SWGLimeRFESettings&
|
||||
limeRFESettings.setTxOn(jsonObject["txOn"].toInt());
|
||||
limeRFESettingsKeys.append("txOn");
|
||||
}
|
||||
if (jsonObject.contains("swrEnable"))
|
||||
{
|
||||
limeRFESettings.setSwrEnable(jsonObject["swrEnable"].toInt());
|
||||
limeRFESettingsKeys.append("swrEnable");
|
||||
}
|
||||
if (jsonObject.contains("swrSource"))
|
||||
{
|
||||
limeRFESettings.setSwrSource(jsonObject["swrSource"].toInt());
|
||||
limeRFESettingsKeys.append("swrSource");
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user