diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2023-03-03 14:50:57 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2023-03-03 14:50:57 +0100 |
commit | 4b3465e0a9e79f18398819f3bd0957efc9952928 (patch) | |
tree | 1beff66739b0162a55c46d16209513a8df641f8f | |
parent | 89e4bcbcba5883355a9b4777cea2bce0a1afd53d (diff) | |
download | dabmod-4b3465e0a9e79f18398819f3bd0957efc9952928.tar.gz dabmod-4b3465e0a9e79f18398819f3bd0957efc9952928.tar.bz2 dabmod-4b3465e0a9e79f18398819f3bd0957efc9952928.zip |
Remove duplicate stream0_start_clks = 0 on init
-rw-r--r-- | src/output/Dexter.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/output/Dexter.cpp b/src/output/Dexter.cpp index b6e6700..aa0b7ad 100644 --- a/src/output/Dexter.cpp +++ b/src/output/Dexter.cpp @@ -101,12 +101,8 @@ Dexter::Dexter(SDRDeviceConfig& config) : etiLog.level(warn) << "Failed to set dexter_dsp_tx.dc1 = false: " << get_iio_error(r); } - if ((r = iio_device_attr_write_longlong(m_dexter_dsp_tx, "stream0_start_clks", 0)) != 0) { - etiLog.level(error) << "Failed to set dexter_dsp_tx.stream0_start_clks = 0: " << get_iio_error(r); - } - if ((r = iio_device_attr_write_longlong(m_dexter_dsp_tx, "gain0", m_conf.txgain)) != 0) { - etiLog.level(error) << "Failed to set dexter_dsp_tx.stream0_start_clks = 0: " << get_iio_error(r); + etiLog.level(error) << "Failed to set dexter_dsp_tx.gain0 = 0: " << get_iio_error(r); } if (m_conf.sampleRate != 2048000) { @@ -447,6 +443,9 @@ void Dexter::transmit_frame(struct FrameData&& frame) channel_down(); break; } + else { + fprintf(stderr, "p"); + } num_buffers_pushed++; } num_frames_modulated++; |