diff --git a/sa_core.c b/sa_core.c index f311681..4167ebc 100644 --- a/sa_core.c +++ b/sa_core.c @@ -3159,13 +3159,10 @@ again: // Spur redu #define TXCO_DIV3 10000000 if (setting.R == 0) { -#if 0 - if (actual_rbw_x10 >= 3000) { + if (setting.mode == M_GENLOW) { if (local_modulo == 0) ADF4351_modulo(1000); ADF4351_R_counter(1); - } else -#endif if (lf < 1000000000 /* && lf >= TXCO_DIV3 */ && MODE_INPUT(setting.mode)) { if (local_modulo == 0) { if (actual_rbw_x10 >= 3000) diff --git a/ui_sa.c b/ui_sa.c index a99958b..5b485e7 100644 --- a/ui_sa.c +++ b/ui_sa.c @@ -517,6 +517,7 @@ static const menuitem_t menu_curve[]; static const menuitem_t menu_curve_confirm[]; #endif static const menuitem_t menu_sweep[]; +static const menuitem_t menu_settings[]; extern bool dirty; char range_text[20]; @@ -1999,7 +2000,7 @@ static const menuitem_t menu_lowoutputmode[] = { #endif { MT_FORM | MT_KEYPAD, KM_EXT_GAIN, "EXTERNAL GAIN: %s", "-100..+100"}, #ifdef TINYSA4 - { MT_FORM | MT_SUBMENU, 255, S_RARROW" Settings", menu_settings3}, + { MT_FORM | MT_SUBMENU, 255, S_RARROW" Settings", menu_settings}, #endif { MT_FORM | MT_CANCEL, 0, "MODE", NULL }, { MT_FORM | MT_NONE, 0, NULL, NULL } // sentinel @@ -2443,7 +2444,7 @@ static const menuitem_t menu_actual_power[] = static const menuitem_t menu_settings[] = { { MT_ADV_CALLBACK | MT_LOW, 0,"LO OUTPUT", menu_lo_output_acb}, - { MT_SUBMENU, 0, "ACTUAL\nPOWER", menu_actual_power}, + { MT_SUBMENU, 0, "LEVEL\nCORRECTION", menu_actual_power}, { MT_KEYPAD | MT_LOW, KM_IF, "IF FREQ", "0=auto IF"}, { MT_SUBMENU,0, "SCAN SPEED", menu_scanning_speed}, #ifndef TINYSA4 @@ -3340,6 +3341,8 @@ redraw_cal_status: strcpy(&buf[0],"Scan:"); ili9341_drawstring(buf, x, y); + if (dirty) setting.actual_sweep_time_us = calc_min_sweep_time_us(); + #if 0 // Activate for sweep time debugging y += YSTEP; plot_printf(buf, BLEN, "%5.3Fs", (float)setting.sweep_time_us/ONE_SECOND_TIME);