From 6b7d92379ee8441a32950c6c144e163d8c5d505e Mon Sep 17 00:00:00 2001 From: erikkaashoek Date: Fri, 4 Sep 2020 16:11:36 +0200 Subject: [PATCH] Workaround for the interrupted modulation --- sa_core.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sa_core.c b/sa_core.c index 76d1704..e3c3505 100644 --- a/sa_core.c +++ b/sa_core.c @@ -1540,7 +1540,7 @@ pureRSSI_t perform(bool break_on_operation, int i, uint32_t f, int tracking) else auto_set_AGC_LNA(true); } - +modulation_again: // ----------------------------------------------------- modulation for output modes --------------------------------------- if (MODE_OUTPUT(setting.mode)){ if (setting.modulation == MO_AM_1kHz || setting.modulation == MO_AM_10Hz) { // AM modulation @@ -1701,6 +1701,11 @@ pureRSSI_t perform(bool break_on_operation, int i, uint32_t f, int tracking) start_of_sweep_timestamp = chVTGetSystemTimeX(); // initialize start sweep time if (MODE_OUTPUT(setting.mode)) { // No substepping and no RSSI in output mode + if (break_on_operation && operation_requested) // break subscanning if requested + return(0); // abort + if (MODE_OUTPUT(setting.mode) && setting.modulation != MO_NONE ) // if in output mode with modulation + goto modulation_again; // Keep repeating sweep loop till user aborts by input + return(0); } // ---------------- Prepare RSSI ----------------------