From 08f511183daea836e29f5a55b69f3aaab8de6c7f Mon Sep 17 00:00:00 2001 From: erikkaashoek Date: Sat, 5 Sep 2020 11:56:59 +0200 Subject: [PATCH] Read also LNA when debugging AGC --- sa_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sa_core.c b/sa_core.c index b73d491..7b7ce91 100644 --- a/sa_core.c +++ b/sa_core.c @@ -1890,7 +1890,7 @@ sweep_again: // stay in sweep loop when output mo RSSI = RSSI - stored_t[i] ; } #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 + stored_t[i] = (SI4432_Read_Byte(0x69) & 0x01f) * 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