From b0611b4951e4385fb4289f28d9f77614039040d4 Mon Sep 17 00:00:00 2001 From: DiSlord Date: Thu, 2 Jul 2020 22:58:54 +0300 Subject: [PATCH] Improved responsiveness of the UI interface. Now if the scan time is more than 100ms, a cycle is used in which you can interrupt the processing of user input --- sa_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sa_core.c b/sa_core.c index 8b2d862..1322aa0 100644 --- a/sa_core.c +++ b/sa_core.c @@ -1497,7 +1497,7 @@ float perform(bool break_on_operation, int i, uint32_t f, int tracking) // M skip_LO_setting: // jump here if in zero span mode and all HW frequency setup is done. #ifdef __FAST_SWEEP__ - if (i == 0 && setting.frequency_step == 0 && setting.trigger == T_AUTO && setting.spur == 0 && SI4432_step_delay == 0 && setting.repeat == 1 && setting.sweep_time_us < ONE_SECOND_TIME) { + if (i == 0 && setting.frequency_step == 0 && setting.trigger == T_AUTO && setting.spur == 0 && SI4432_step_delay == 0 && setting.repeat == 1 && setting.sweep_time_us < 100*ONE_MS_TIME) { // if ultra fast scanning is needed prefill the SI4432 RSSI read buffer SI4432_Fill(MODE_SELECT(setting.mode), 0); }