From 84e5abe9ac704e56512d67dac03d3b542e26ea06 Mon Sep 17 00:00:00 2001 From: erikkaashoek Date: Fri, 3 Jul 2020 17:23:25 +0200 Subject: [PATCH] Remove dead time after output sweep --- sa_core.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sa_core.c b/sa_core.c index 241bf30..246472f 100644 --- a/sa_core.c +++ b/sa_core.c @@ -1786,7 +1786,7 @@ sweep_again: // stay in sweep loop when output mo } // end of input specific processing } // ---------------------- end of sweep loop ----------------------------- - if (MODE_OUTPUT(setting.mode) && setting.modulation != MO_NONE) // if in output mode with modulation + if (MODE_OUTPUT(setting.mode) && setting.modulation != MO_NONE ) // if in output mode with modulation goto sweep_again; // Keep repeating sweep loop till user aborts by input // --------------- check if maximum is above trigger level ----------------- @@ -1852,6 +1852,10 @@ sweep_again: // stay in sweep loop when output mo redraw_request |= REDRAW_CAL_STATUS; } + if (MODE_OUTPUT(setting.mode) ) // Sweep time is calculated, we can sweep again in output mode + goto again; // Keep repeating sweep loop till user aborts by input + + // -------------------------- auto attenuate ---------------------------------- if (!in_selftest && setting.mode == M_LOW && setting.auto_attenuation && max_index[0] > 0) { // calculate and apply auto attenuate