mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-01-13 11:47:13 +01:00
Fixed gain bug for RSPduo
This commit is contained in:
parent
6332b33f3e
commit
a0316e57c5
@ -434,6 +434,12 @@ public:
|
|||||||
channelParams->rspDuoTunerParams.tuner1AmPortSel = amPort;
|
channelParams->rspDuoTunerParams.tuner1AmPortSel = amPort;
|
||||||
sdrplay_api_Update(openDev.dev, openDev.tuner, sdrplay_api_Update_RspDuo_AmPortSelect, sdrplay_api_Update_Ext1_None);
|
sdrplay_api_Update(openDev.dev, openDev.tuner, sdrplay_api_Update_RspDuo_AmPortSelect, sdrplay_api_Update_Ext1_None);
|
||||||
|
|
||||||
|
// Refresh gains (for some reason they're lost)
|
||||||
|
channelParams->tunerParams.gain.LNAstate = lnaGain;
|
||||||
|
channelParams->tunerParams.gain.gRdB = gain;
|
||||||
|
sdrplay_api_Update(openDev.dev, openDev.tuner, sdrplay_api_Update_Tuner_Gr, sdrplay_api_Update_Ext1_None);
|
||||||
|
sdrplay_api_Update(openDev.dev, openDev.tuner, sdrplay_api_Update_Tuner_Gr, sdrplay_api_Update_Ext1_None);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void rspDuoSelectAntennaPort(int port) {
|
void rspDuoSelectAntennaPort(int port) {
|
||||||
|
Loading…
Reference in New Issue
Block a user