mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-01 21:54:55 -04:00
LimeRFE USB support: REST API: SWR handling fixes
This commit is contained in:
@@ -2608,6 +2608,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