1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-16 05:11:49 -05:00

LimeRFE USB support corrections

This commit is contained in:
f4exb 2020-01-13 01:56:45 +01:00
parent c3981ef86b
commit 1062b6a648

View File

@ -145,10 +145,6 @@ int LimeRFEController::setRx(LimeRFESettings& settings, bool rxOn)
return -1;
}
if (settings.m_txRxDriven) {
return 0;
}
int mode = rxOn && settings.m_txOn ?
RFE_MODE_TXRX : rxOn ?
RFE_MODE_RX : settings.m_txOn ?
@ -169,10 +165,6 @@ int LimeRFEController::setTx(LimeRFESettings& settings, bool txOn)
return -1;
}
if (settings.m_txRxDriven) {
return 0;
}
int mode = txOn && settings.m_rxOn ?
RFE_MODE_TXRX : txOn ?
RFE_MODE_TX : settings.m_rxOn ?
@ -181,7 +173,7 @@ int LimeRFEController::setTx(LimeRFESettings& settings, bool txOn)
int rc = RFE_Mode(m_rfeDevice, mode);
if (rc == 0) {
settings.m_rxOn = txOn;
settings.m_txOn = txOn;
}
return rc;