mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-03-22 12:18:32 -04:00
PlutoSDR input: cosmetic changes
This commit is contained in:
parent
924eddd3b8
commit
cec24b8078
@ -343,7 +343,7 @@ void PlutoSDRInputGui::updateStatus()
|
||||
{
|
||||
std::string rssiStr;
|
||||
((PlutoSDRInput *) m_sampleSource)->getRSSI(rssiStr);
|
||||
ui->rssiText->setText(QString::fromStdString(rssiStr));
|
||||
ui->rssiText->setText(tr("-%1").arg(QString::fromStdString(rssiStr)));
|
||||
}
|
||||
|
||||
if (m_statusCounter % 10 == 0) // 5s
|
||||
|
@ -176,25 +176,6 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="channelNumberText">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Channel number</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>#0</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
@ -583,6 +564,13 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>D</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="lpFIRDecimation">
|
||||
<property name="maximumSize">
|
||||
@ -611,6 +599,13 @@
|
||||
</item>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="lpFIRGainLabel">
|
||||
<property name="text">
|
||||
<string>G</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="lpFIRGain">
|
||||
<property name="maximumSize">
|
||||
|
@ -14,6 +14,8 @@
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
|
||||
///////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
#include "plutosdr/deviceplutosdrbox.h"
|
||||
#include "plutosdrinputsettings.h"
|
||||
#include "plutosdrinputthread.h"
|
||||
@ -85,7 +87,13 @@ void PlutoSDRInputThread::run()
|
||||
|
||||
// Refill RX buffer
|
||||
nbytes_rx = m_plutoBox->rxBufferRefill();
|
||||
if (nbytes_rx < 0) { qWarning("PlutoSDRInputThread::run: error refilling buf %d\n",(int) nbytes_rx); break; }
|
||||
|
||||
if (nbytes_rx < 0)
|
||||
{
|
||||
qWarning("PlutoSDRInputThread::run: error refilling buf %d\n",(int) nbytes_rx);
|
||||
usleep(200000);
|
||||
continue;
|
||||
}
|
||||
|
||||
// READ: Get pointers to RX buf and read IQ from RX buf port 0
|
||||
p_inc = m_plutoBox->rxBufferStep();
|
||||
|
Loading…
Reference in New Issue
Block a user