kopia lustrzana https://github.com/f4exb/sdrangel
LimeSDR: DeviceLimeSDRParams::open: set message level to critical when returning false status
rodzic
715222365f
commit
8e20d9f390
|
@ -23,13 +23,13 @@ bool DeviceLimeSDRParams::open(lms_info_str_t deviceStr)
|
||||||
|
|
||||||
if (LMS_Open(&m_dev, deviceStr, 0) < 0)
|
if (LMS_Open(&m_dev, deviceStr, 0) < 0)
|
||||||
{
|
{
|
||||||
qDebug() << "DeviceLimeSDRParams::open: cannot open device " << deviceStr;
|
qCritical() << "DeviceLimeSDRParams::open: cannot open device " << deviceStr;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (LMS_Init(m_dev) < 0)
|
if (LMS_Init(m_dev) < 0)
|
||||||
{
|
{
|
||||||
qDebug() << "DeviceLimeSDRParams::open: cannot init device " << deviceStr;
|
qCritical() << "DeviceLimeSDRParams::open: cannot init device " << deviceStr;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ bool DeviceLimeSDRParams::open(lms_info_str_t deviceStr)
|
||||||
|
|
||||||
if ((n = LMS_GetNumChannels(m_dev, LMS_CH_RX)) < 0)
|
if ((n = LMS_GetNumChannels(m_dev, LMS_CH_RX)) < 0)
|
||||||
{
|
{
|
||||||
qDebug() << "DeviceLimeSDRParams::open: cannot get the number of Rx channels for device " << deviceStr;
|
qCritical() << "DeviceLimeSDRParams::open: cannot get the number of Rx channels for device " << deviceStr;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -48,7 +48,7 @@ bool DeviceLimeSDRParams::open(lms_info_str_t deviceStr)
|
||||||
|
|
||||||
if ((n = LMS_GetNumChannels(m_dev, LMS_CH_TX)) < 0)
|
if ((n = LMS_GetNumChannels(m_dev, LMS_CH_TX)) < 0)
|
||||||
{
|
{
|
||||||
qDebug() << "DeviceLimeSDRParams::open: cannot get the number of Tx channels for device " << deviceStr;
|
qCritical() << "DeviceLimeSDRParams::open: cannot get the number of Tx channels for device " << deviceStr;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -59,13 +59,13 @@ bool DeviceLimeSDRParams::open(lms_info_str_t 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;
|
qCritical() << "DeviceLimeSDRParams::open: cannot get the Rx LPF range for device " << deviceStr;
|
||||||
return false;
|
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;
|
qCritical() << "DeviceLimeSDRParams::open: cannot get the Tx LPF range for device " << deviceStr;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -77,19 +77,19 @@ bool DeviceLimeSDRParams::open(lms_info_str_t deviceStr)
|
||||||
|
|
||||||
if (LMS_GetLOFrequencyRange(m_dev, LMS_CH_TX, &m_loRangeTx) < 0)
|
if (LMS_GetLOFrequencyRange(m_dev, LMS_CH_TX, &m_loRangeTx) < 0)
|
||||||
{
|
{
|
||||||
qDebug() << "DeviceLimeSDRParams::open: cannot get the Tx LO range for device " << deviceStr;
|
qCritical() << "DeviceLimeSDRParams::open: cannot get the Tx LO range for device " << deviceStr;
|
||||||
return false;
|
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;
|
qCritical() << "DeviceLimeSDRParams::open: cannot get the Rx sample rate range for device " << deviceStr;
|
||||||
return false;
|
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;
|
qCritical() << "DeviceLimeSDRParams::open: cannot get the Tx sample rate range for device " << deviceStr;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue