1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-22 16:08:39 -05:00

Fixed PlutoSDR output sample width. Fixes issue #198

This commit is contained in:
f4exb 2018-07-16 23:49:04 +02:00
parent ea83e43d09
commit f66f9e1cfe
2 changed files with 1 additions and 2 deletions

View File

@ -94,7 +94,6 @@ void PlutoSDROutputThread::run()
for (p_dat = m_plutoBox->txBufferFirst(), ihs = 0; p_dat < p_end; p_dat += p_inc, ihs += 2)
{
m_plutoBox->txChannelConvert((int16_t*) p_dat, &m_buf[ihs]);
//*((int16_t*)p_dat) = m_buf[ihs] << 4;
}
// Schedule TX buffer for sending

View File

@ -54,7 +54,7 @@ private:
unsigned int m_log2Interp; // soft interpolation
Interpolators<qint16, SDR_TX_SAMP_SZ, 12> m_interpolators;
Interpolators<qint16, SDR_TX_SAMP_SZ, 16> m_interpolators; //!< Pluto is on 12 bit but iio_channel_convert_inverse converts from 16 to 12 bits
void run();
void convert(qint16* buf, qint32 len);