From 002ef720ee260e36fd0a9fd6972a0fdd1a9e4720 Mon Sep 17 00:00:00 2001 From: Mark Thompson <129641948+NotherNgineer@users.noreply.github.com> Date: Tue, 1 Aug 2023 13:20:19 -0500 Subject: [PATCH] Fixed waterfall frequency scale in Replay app (#1337) * Fix waterfall frequency scale in Replay * Fix waterfall frequency scale in Replay --- firmware/baseband/proc_replay.cpp | 2 ++ firmware/baseband/proc_replay.hpp | 4 ---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/firmware/baseband/proc_replay.cpp b/firmware/baseband/proc_replay.cpp index 962367ee..787211ba 100644 --- a/firmware/baseband/proc_replay.cpp +++ b/firmware/baseband/proc_replay.cpp @@ -46,6 +46,8 @@ void ReplayProcessor::execute(const buffer_c8_t& buffer) { if (!configured || !stream) return; + buffer_c16_t iq_buffer{iq.data(), iq.size(), baseband_fs / 8}; + // File data is in C16 format, we need C8 // File samplerate is 500kHz, we're at 4MHz // iq_buffer can only be 512 C16 samples (RAM limitation) diff --git a/firmware/baseband/proc_replay.hpp b/firmware/baseband/proc_replay.hpp index e5ba71ab..f32c35f3 100644 --- a/firmware/baseband/proc_replay.hpp +++ b/firmware/baseband/proc_replay.hpp @@ -45,10 +45,6 @@ class ReplayProcessor : public BasebandProcessor { static constexpr auto spectrum_rate_hz = 50.0f; std::array iq{}; - const buffer_c16_t iq_buffer{ - iq.data(), - iq.size(), - baseband_fs / 8}; int32_t channel_filter_low_f = 0; int32_t channel_filter_high_f = 0;