From 8fd761d53b4399b1f5fe5f89aa78764fd592aa37 Mon Sep 17 00:00:00 2001 From: erikkaashoek Date: Mon, 22 Feb 2021 08:34:07 +0100 Subject: [PATCH] Corrected burst error --- sa_core.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sa_core.c b/sa_core.c index a1fc4af..87f4889 100644 --- a/sa_core.c +++ b/sa_core.c @@ -1697,11 +1697,15 @@ pureRSSI_t perform(bool break_on_operation, int i, freq_t f, int tracking) / } } - if (setting.mode == M_GENLOW && ( setting.frequency_step != 0 || setting.level_sweep != 0.0 || i == 0)) {// if in low output mode and level sweep or frequency weep is active or at start of sweep + if (setting.mode == M_GENLOW && ( setting.frequency_step != 0 || setting.level_sweep != 0.0)) {// start burst + SI4432_Sel = SI4432_LO ; if (i == 0) set_switch_transmit(); - else + else if (i == 1) set_switch_off(); + } + + if (setting.mode == M_GENLOW && ( setting.frequency_step != 0 || setting.level_sweep != 0.0 || i == 0)) {// if in low output mode and level sweep or frequency weep is active or at start of sweep float ls=setting.level_sweep; // calculate and set the output level if (ls > 0) ls += 0.5;