mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-01 21:54:55 -04:00
REST API server updates and fixes
This commit is contained in:
@@ -1731,10 +1731,10 @@ bool WebAPIRequestMapper::validateDeviceListItem(SWGSDRangel::SWGDeviceListItem&
|
||||
deviceListItem.setSequence(-1);
|
||||
}
|
||||
|
||||
if (jsonObject.contains("streamIndex")) {
|
||||
deviceListItem.setStreamIndex(jsonObject["streamIndex"].toInt(-1));
|
||||
if (jsonObject.contains("deviceStreamIndex")) {
|
||||
deviceListItem.setDeviceStreamIndex(jsonObject["deviceStreamIndex"].toInt(-1));
|
||||
} else {
|
||||
deviceListItem.setStreamIndex(-1);
|
||||
deviceListItem.setDeviceStreamIndex(-1);
|
||||
}
|
||||
|
||||
return identified;
|
||||
|
||||
Reference in New Issue
Block a user