From be19dda79c659ce71fbbad087dd81a5a4bc8a2f5 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Tue, 11 Jun 2024 15:54:33 +0200 Subject: Write DEXTER ad9957 freq as integer --- src/output/Dexter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/output/Dexter.cpp b/src/output/Dexter.cpp index 0cd21ca..41e131a 100644 --- a/src/output/Dexter.cpp +++ b/src/output/Dexter.cpp @@ -361,8 +361,8 @@ void Dexter::tune(double lo_offset, double frequency) int r = 0; - const double freq = frequency - lo_offset; - if ((r = iio_device_attr_write_double(m_ad9957, "center_frequency", freq)) != 0) { + const long long freq = frequency - lo_offset; + if ((r = iio_device_attr_write_longlong(m_ad9957, "center_frequency", freq)) != 0) { etiLog.level(warn) << "Failed to set ad9957.center_frequency = " << freq << " : " << get_iio_error(r); } -- cgit v1.2.3