From 26e33a0d9c367a3e1ca71463e80fd2118c3e9ea7 Mon Sep 17 00:00:00 2001 From: erikkaashoek Date: Mon, 18 Aug 2025 19:18:10 +0200 Subject: [PATCH] solve LBA/ATTEN bug --- sa_core.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sa_core.c b/sa_core.c index d23e3e2..a0053df 100644 --- a/sa_core.c +++ b/sa_core.c @@ -1065,10 +1065,6 @@ void toggle_high_out_adf4350(void) void toggle_extra_lna(void) { setting.extra_lna = !setting.extra_lna; -#ifdef TINYSA4_4 - if (setting.extra_lna) - setting.attenuate_x2 = 0; -#endif set_extra_lna(setting.extra_lna); } @@ -1083,6 +1079,10 @@ void set_extra_lna(int t) setting.correction_frequency = config.correction_frequency[CORRECTION_LOW_IN]; setting.correction_value = config.correction_value[CORRECTION_LOW_IN]; } +#endif +#ifdef TINYSA4_4 + if (setting.extra_lna) + setting.attenuate_x2 = 0; #endif dirty = true; }