From ddbed33f15275d63164d0a5fc63467c46f603bd7 Mon Sep 17 00:00:00 2001 From: erikkaashoek Date: Sat, 15 Apr 2023 08:37:23 +0200 Subject: [PATCH] Correction --- main.c | 2 +- sa_core.c | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/main.c b/main.c index c0245d2..952389a 100644 --- a/main.c +++ b/main.c @@ -2003,7 +2003,7 @@ VNA_SHELL_FUNCTION(cmd_version) (void)argc; (void)argv; #ifdef TINYSA4 - shell_printf("%s\r\nHW Version:%s\r\n", TINYSA_VERSION, get_hw_version_text()); + shell_printf("%s\r\nHW Version:%s %s\r\n", TINYSA_VERSION, get_hw_version_text(), (max2871?"max2871":"")); #else shell_printf("%s\r\n", TINYSA_VERSION); #endif diff --git a/sa_core.c b/sa_core.c index 73a5b8a..c8f9270 100644 --- a/sa_core.c +++ b/sa_core.c @@ -411,8 +411,13 @@ void set_input_path(freq_t f) goto common; case PATH_DIRECT: - enable_ultra(true); - enable_direct(true); + if (max2871) { + enable_ultra(false); + enable_direct(true); + } else { + enable_ultra(true); + enable_direct(true); + } enable_high(true); enable_extra_lna(setting.extra_lna); if (setting.tracking_output)