From 1c09b8e1cb19af20c99d1e592c013373806e4bef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20K=C3=A4berich?= Date: Sun, 30 Jul 2023 13:08:27 +0200 Subject: [PATCH] Clear old VNA data when starting new sweep --- Software/VNA_embedded/Application/VNA.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Software/VNA_embedded/Application/VNA.cpp b/Software/VNA_embedded/Application/VNA.cpp index bd17870..c033f6b 100644 --- a/Software/VNA_embedded/Application/VNA.cpp +++ b/Software/VNA_embedded/Application/VNA.cpp @@ -109,6 +109,7 @@ static bool needs2LOshift(uint64_t f, uint32_t current2LO, uint32_t IFBW, uint32 bool VNA::Setup(Protocol::SweepSettings s) { VNA::Stop(); vTaskDelay(5); + data.clear(); HW::SetMode(HW::Mode::VNA); // Abort possible active sweep first FPGA::SetMode(FPGA::Mode::FPGA);