1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 01:55:48 -05:00

Merge pull request #1770 from catkira/fix_pluto_mimo

Fix variable names in in plutosdrmimosettings.cpp
This commit is contained in:
Edouard Griffiths 2023-08-13 05:07:53 +02:00 committed by GitHub
commit 33ce5cf573
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -207,18 +207,18 @@ bool PlutoSDRMIMOSettings::deserialize(const QByteArray& data)
}
// Rx1
d.readU32(50, &m_rx0Gain, 40);
d.readU32(50, &m_rx1Gain, 40);
d.readS32(51, &intval, 0);
if ((intval >= 0) && (intval < (int) RFPATHRX_END)) {
m_rx0AntennaPath = (RFPathRx) intval;
m_rx1AntennaPath = (RFPathRx) intval;
} else {
m_rx0AntennaPath = RFPATHRX_A_BAL;
m_rx1AntennaPath = RFPATHRX_A_BAL;
}
d.readS32(52, &intval, 0);
if ((intval >= 0) && (intval < (int) GAIN_END)) {
m_rx0GainMode = (GainMode) intval;
m_rx1GainMode = (GainMode) intval;
} else {
m_rx0GainMode = GAIN_MANUAL;
m_rx1GainMode = GAIN_MANUAL;
}
// Tx