Clear old VNA data when starting new sweep

This commit is contained in:
Jan Käberich 2023-07-30 13:08:27 +02:00
parent 6901278185
commit 1c09b8e1cb

View File

@ -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);