mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-01 21:54:55 -04:00
LimeSDR: fix NCO direction as Tx is opposed to Rx
This commit is contained in:
@@ -50,7 +50,7 @@ bool DeviceLimeSDR::setNCOFrequency(lms_device_t *device, bool dir_tx, std::size
|
||||
return false;
|
||||
}
|
||||
|
||||
if (LMS_SetNCOIndex(device, dir_tx, chan, 0, positive) < 0)
|
||||
if (LMS_SetNCOIndex(device, dir_tx, chan, 0, dir_tx^positive) < 0)
|
||||
{
|
||||
fprintf(stderr, "DeviceLimeSDR::setNCOFrequency: cannot set conversion direction %sfreq\n", positive ? "+" : "-");
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user