Skip to content

Commit

Permalink
fix variable names in in plutosdrmimosettings.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
catkira committed Aug 9, 2023
1 parent 8383467 commit 4696c9d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions plugins/samplemimo/plutosdrmimo/plutosdrmimosettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4696c9d

Please sign in to comment.