From 6090682d2e84a588749c11206a0a534fa30d290c Mon Sep 17 00:00:00 2001 From: erikkaashoek Date: Mon, 22 Feb 2021 08:49:11 +0100 Subject: [PATCH] Added DC pulse --- sa_core.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sa_core.c b/sa_core.c index 87f4889..3da0fe7 100644 --- a/sa_core.c +++ b/sa_core.c @@ -1699,10 +1699,13 @@ 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)) {// start burst SI4432_Sel = SI4432_LO ; - if (i == 0) + if (i == 0) { set_switch_transmit(); - else if (i == 1) + SI4432_Write_Byte(SI4432_GPIO2_CONF, 0x1D) ; // Set GPIO2 output to ground + } else if (i == 1) { set_switch_off(); + SI4432_Write_Byte(SI4432_GPIO2_CONF, 0x1F) ; // Set GPIO2 output to ground + } } 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