From 596c8c9d90725cd785fc9c18d3229333bc95fbd4 Mon Sep 17 00:00:00 2001 From: erikkaashoek Date: Thu, 9 Jul 2020 09:37:29 +0200 Subject: [PATCH] Added spur shift debugging and IF help text --- sa_core.c | 3 +++ ui_sa.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/sa_core.c b/sa_core.c index af00984..890a35c 100644 --- a/sa_core.c +++ b/sa_core.c @@ -1800,6 +1800,9 @@ sweep_again: // stay in sweep loop when output mo } #ifdef __DEBUG_AGC__ // For debugging the AGC control stored_t[i] = (SI4432_Read_Byte(0x69) & 0x0f) * 3.0 - 90.0; // Display the AGC value in the stored trace +#endif +#ifdef __DEBUG_SPUR__ // For debugging the spur avoidance control + stored_t[i] = (avoid_spur(frequencies[i]) ? -60.0 : - 90.0); // Display when to do spur shift in the stored trace #endif if (scandirty || setting.average == AV_OFF) { // Level calculations actual_t[i] = RSSI; diff --git a/ui_sa.c b/ui_sa.c index 00c17d9..d775cdd 100644 --- a/ui_sa.c +++ b/ui_sa.c @@ -1440,7 +1440,7 @@ static const menuitem_t menu_settings[] = { { MT_CALLBACK | MT_LOW, 5, "\2LO\0OUTPUT",menu_settings2_cb}, { MT_KEYPAD, KM_ACTUALPOWER, "\2ACTUAL\0POWER", NULL}, - { MT_KEYPAD | MT_LOW, KM_IF, "\2IF\0FREQ", NULL}, + { MT_KEYPAD | MT_LOW, KM_IF, "\2IF\0FREQ", "Set to zero for auto IF"}, { MT_SUBMENU,0, "\2SCAN\0SPEED", menu_scanning_speed}, { MT_KEYPAD, KM_REPEAT, "\2SAMPLE\0REPEAT", "1..100"}, { MT_SUBMENU | MT_LOW,0, "\2MIXER\0DRIVE", menu_drive},