PlutoSDR input: cosmetic changes

This commit is contained in:
f4exb 2017-09-10 17:44:34 +02:00
parent 924eddd3b8
commit cec24b8078
3 changed files with 24 additions and 21 deletions

View File

@ -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

View File

@ -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">

View File

@ -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();