mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-21 23:55:13 -05:00
LimeSDR: fix NCO direction as Tx is opposed to Rx
This commit is contained in:
parent
50c977002c
commit
55cd795eb4
@ -119,7 +119,7 @@ HackRF is better used with a sampling rate of 4.8 MS/s and above. The 2.4 and 3.
|
||||
|
||||
[LimeSDR](https://myriadrf.org/projects/limesdr/) and its smaller clone LimeSDR Mini are supported using LimeSuite library (see next).
|
||||
|
||||
<p><b>⚠ The plugins should work normally when running as single instances. Support of many Rx and/or Tx instances running concurrently is considered experimental. At least you should always have one of the streams running.</b></p>
|
||||
<p><b>⚠ The latest version of LimeSuite is used and must be considered experimental. Hence LimeSDR support in SDRangel is also experimental.</b></p>
|
||||
|
||||
<p>⚠ It seems LimeSDR mini has trouble working with host sample rates lower than 2.5 MS/s particularly in Tx mode.</p>
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user