mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-07-17 16:24:08 -04:00
SDRplay V3: added device type in API report
This commit is contained in:
@@ -937,6 +937,28 @@ void SDRPlayV3Input::webapiFormatDeviceReport(SWGSDRangel::SWGDeviceReport& resp
|
||||
response.getSdrPlayV3Report()->getBandwidths()->append(new SWGSDRangel::SWGBandwidth);
|
||||
response.getSdrPlayV3Report()->getBandwidths()->back()->setBandwidth(SDRPlayV3Bandwidths::getBandwidth(i));
|
||||
}
|
||||
|
||||
switch(getDeviceId())
|
||||
{
|
||||
case SDRPLAY_RSP1_ID:
|
||||
response.getSdrPlayV3Report()->setDeviceType(new QString("RSP1"));
|
||||
break;
|
||||
case SDRPLAY_RSP1A_ID:
|
||||
response.getSdrPlayV3Report()->setDeviceType(new QString("RSP1A"));
|
||||
break;
|
||||
case SDRPLAY_RSP2_ID:
|
||||
response.getSdrPlayV3Report()->setDeviceType(new QString("RSP2"));
|
||||
break;
|
||||
case SDRPLAY_RSPduo_ID:
|
||||
response.getSdrPlayV3Report()->setDeviceType(new QString("RSPduo"));
|
||||
break;
|
||||
case SDRPLAY_RSPdx_ID:
|
||||
response.getSdrPlayV3Report()->setDeviceType(new QString("RSPdx"));
|
||||
break;
|
||||
default:
|
||||
response.getSdrPlayV3Report()->setDeviceType(new QString("Unknown"));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void SDRPlayV3Input::webapiReverseSendSettings(QList<QString>& deviceSettingsKeys, const SDRPlayV3Settings& settings, bool force)
|
||||
|
||||
Reference in New Issue
Block a user