mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-07-29 13:34:13 -04:00
LimeSDR input: debug (2)
This commit is contained in:
@@ -19,13 +19,15 @@
|
||||
|
||||
bool DeviceLimeSDRParams::open(lms_info_str_t deviceStr)
|
||||
{
|
||||
if (LMS_Open(&m_dev, deviceStr, 0))
|
||||
qDebug("DeviceLimeSDRParams::open: serial: %s", (const char *) deviceStr);
|
||||
|
||||
if (LMS_Open(&m_dev, deviceStr, 0) < 0)
|
||||
{
|
||||
qDebug() << "DeviceLimeSDRParams::open: cannot open device " << deviceStr;
|
||||
return false;
|
||||
}
|
||||
|
||||
if (LMS_Init(m_dev) != 0)
|
||||
if (LMS_Init(m_dev) < 0)
|
||||
{
|
||||
qDebug() << "DeviceLimeSDRParams::open: cannot init device " << deviceStr;
|
||||
return false;
|
||||
@@ -55,37 +57,37 @@ bool DeviceLimeSDRParams::open(lms_info_str_t deviceStr)
|
||||
qDebug() << "DeviceLimeSDRParams::open: " << n << " Tx channels for device " << deviceStr;
|
||||
}
|
||||
|
||||
if (LMS_GetLPFBWRange(m_dev, LMS_CH_RX, &m_lpfRangeRx) != 0)
|
||||
if (LMS_GetLPFBWRange(m_dev, LMS_CH_RX, &m_lpfRangeRx) < 0)
|
||||
{
|
||||
qDebug() << "DeviceLimeSDRParams::open: cannot get the Rx LPF range for device " << deviceStr;
|
||||
return false;
|
||||
}
|
||||
|
||||
if (LMS_GetLPFBWRange(m_dev, LMS_CH_TX, &m_lpfRangeTx) != 0)
|
||||
if (LMS_GetLPFBWRange(m_dev, LMS_CH_TX, &m_lpfRangeTx) < 0)
|
||||
{
|
||||
qDebug() << "DeviceLimeSDRParams::open: cannot get the Tx LPF range for device " << deviceStr;
|
||||
return false;
|
||||
}
|
||||
|
||||
if (LMS_GetLOFrequencyRange(m_dev, LMS_CH_RX, &m_lpfRangeRx) != 0)
|
||||
if (LMS_GetLOFrequencyRange(m_dev, LMS_CH_RX, &m_loRangeRx) < 0)
|
||||
{
|
||||
qDebug() << "DeviceLimeSDRParams::open: cannot get the Rx LO range for device " << deviceStr;
|
||||
return false;
|
||||
}
|
||||
|
||||
if (LMS_GetLOFrequencyRange(m_dev, LMS_CH_TX, &m_lpfRangeTx) != 0)
|
||||
if (LMS_GetLOFrequencyRange(m_dev, LMS_CH_TX, &m_loRangeTx) < 0)
|
||||
{
|
||||
qDebug() << "DeviceLimeSDRParams::open: cannot get the Tx LO range for device " << deviceStr;
|
||||
return false;
|
||||
}
|
||||
|
||||
if (LMS_GetSampleRateRange(m_dev, LMS_CH_RX, &m_srRangeRx) != 0)
|
||||
if (LMS_GetSampleRateRange(m_dev, LMS_CH_RX, &m_srRangeRx) < 0)
|
||||
{
|
||||
qDebug() << "DeviceLimeSDRParams::open: cannot get the Rx sample rate range for device " << deviceStr;
|
||||
return false;
|
||||
}
|
||||
|
||||
if (LMS_GetSampleRateRange(m_dev, LMS_CH_TX, &m_srRangeTx) != 0)
|
||||
if (LMS_GetSampleRateRange(m_dev, LMS_CH_TX, &m_srRangeTx) < 0)
|
||||
{
|
||||
qDebug() << "DeviceLimeSDRParams::open: cannot get the Tx sample rate range for device " << deviceStr;
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user