Commit c113a969 authored by Richard's avatar Richard

Change lms chip before configuring interface frequency

parent a77a53bd
Pipeline #155115250 passed with stage
in 10 minutes and 18 seconds
...@@ -598,7 +598,7 @@ int LMS7_Device::SetRate(bool tx, double f_Hz, unsigned oversample) ...@@ -598,7 +598,7 @@ int LMS7_Device::SetRate(bool tx, double f_Hz, unsigned oversample)
|| (lms->Modify_SPI_Reg_bits(LMS7param(MAC), 1) != 0) || (lms->Modify_SPI_Reg_bits(LMS7param(MAC), 1) != 0)
|| (lms->SetInterfaceFrequency(cgen, interpolation, decimation) != 0)) || (lms->SetInterfaceFrequency(cgen, interpolation, decimation) != 0))
return -1; return -1;
lms_chip_id = i;
if (SetFPGAInterfaceFreq(interpolation, decimation)!=0) if (SetFPGAInterfaceFreq(interpolation, decimation)!=0)
return -1; return -1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment