API change calibration flags
@@ -1501,12 +1501,12 @@ int LMS7_Device::Calibrate(bool dir_tx, size_t chan, double bw, unsigned flags)
lime::ReportError(EINVAL, "Invalid channel number.");
return -1;
}
- lms->EnableCalibrationByMCU((flags&1) == 0);
+ //lms->EnableCalibrationByMCU((flags&1) == 0);
lms->Modify_SPI_Reg_bits(LMS7param(MAC), (chan%2) + 1, true);
if (dir_tx)
- return lms->CalibrateTx(bw, false);
+ return lms->CalibrateTx(bw, flags & 1);
else
- return lms->CalibrateRx(bw, false);
+ return lms->CalibrateRx(bw, flags & 1);
}
int LMS7_Device::SetRxFrequency(size_t chan, double f_Hz)
