From 4b3465e0a9e79f18398819f3bd0957efc9952928 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 3 Mar 2023 14:50:57 +0100 Subject: Remove duplicate stream0_start_clks = 0 on init --- src/output/Dexter.cpp | 9 ++++----- 1 file 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++; -- cgit v1.2.3