1
0
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:
f4exb
2018-03-15 23:48:25 +01:00
parent 50c977002c
commit 55cd795eb4
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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;