Skip to content

Commit

Permalink
fix xtrx fpga direct clocking version check
Browse files Browse the repository at this point in the history
  • Loading branch information
rjonaitis committed Aug 23, 2024
1 parent ca8b572 commit cca28bd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/boards/LimeSDR_XTRX/FPGA_XTRX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ OpStatus FPGA_XTRX::SetInterfaceFreq(double txRate_Hz, double rxRate_Hz, double

OpStatus FPGA_XTRX::EnableDirectClocking(bool enabled)
{
const bool noDirectClocking = mGatewareVersion == 1 && ((mHardwareVersion == 0 && mGatewareRevision < 4) ||
(mHardwareVersion == 1 && mGatewareRevision < 15));
const bool isFairwavesRev5 = mHardwareVersion == 0;
const bool noDirectClocking =
mGatewareVersion == 1 && ((isFairwavesRev5 && mGatewareRevision < 4) || (!isFairwavesRev5 && mGatewareRevision < 15));
if (enabled && noDirectClocking)
{
return ReportError(
Expand Down

0 comments on commit cca28bd

Please sign in to comment.