From a68b31c58ad4940cb4a001828f174188bb05abd3 Mon Sep 17 00:00:00 2001 From: erikkaashoek Date: Mon, 30 May 2022 13:13:46 +0200 Subject: [PATCH] SHow ultra in status --- sa_core.c | 1 + ui_sa.c | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/sa_core.c b/sa_core.c index 23812ef..2802fce 100644 --- a/sa_core.c +++ b/sa_core.c @@ -5757,6 +5757,7 @@ int validate_atten(int i) { // float a = ((float)j)/2.0; float a = atten_step[j]; set_attenuation(a); + setting.repeat = 10; test_acquire(TEST_LEVEL); // Acquire test, does also the averaging. test_validate(TEST_LEVEL); // Validate test, does nothing actually if (j == 0) diff --git a/ui_sa.c b/ui_sa.c index 76c1995..e2b5f14 100644 --- a/ui_sa.c +++ b/ui_sa.c @@ -3896,6 +3896,13 @@ redraw_cal_status: y = add_quick_menu(y, (menuitem_t *)menu_level); y += YSTEP; } + + if (config.ultra_start != ULTRA_AUTO){ + ili9341_set_foreground(LCD_BRIGHT_COLOR_GREEN); + lcd_printf(x, y, "Ultra:\n%3QHz", ultra_start); + y = add_quick_menu(y += YSTEP, (menuitem_t *)menu_config); + } + #endif // Cal output if (setting.refer >= 0) {