mirror of
https://github.com/ttrftech/NanoVNA.git
synced 2025-12-06 03:31:59 +01:00
fix: break sweep loop on frequency change
This commit is contained in:
parent
f7e712798a
commit
3fc17e18f9
2
main.c
2
main.c
|
|
@ -793,6 +793,8 @@ update_frequencies(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
set_frequencies(start, stop, sweep_points);
|
set_frequencies(start, stop, sweep_points);
|
||||||
|
operation_requested = OP_FREQCHANGE;
|
||||||
|
|
||||||
update_marker_index();
|
update_marker_index();
|
||||||
|
|
||||||
// set grid layout
|
// set grid layout
|
||||||
|
|
|
||||||
|
|
@ -86,6 +86,9 @@ extern int8_t sweep_enabled;
|
||||||
extern void ui_init(void);
|
extern void ui_init(void);
|
||||||
extern void ui_process(void);
|
extern void ui_process(void);
|
||||||
|
|
||||||
|
enum { OP_NONE = 0, OP_LEVER, OP_TOUCH, OP_FREQCHANGE };
|
||||||
|
extern uint8_t operation_requested;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* dsp.c
|
* dsp.c
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
1
ui.c
1
ui.c
|
|
@ -59,7 +59,6 @@ static uint32_t last_button_down_ticks;
|
||||||
static uint32_t last_button_repeat_ticks;
|
static uint32_t last_button_repeat_ticks;
|
||||||
static int8_t inhibit_until_release = FALSE;
|
static int8_t inhibit_until_release = FALSE;
|
||||||
|
|
||||||
enum { OP_NONE = 0, OP_LEVER, OP_TOUCH };
|
|
||||||
uint8_t operation_requested = OP_NONE;
|
uint8_t operation_requested = OP_NONE;
|
||||||
|
|
||||||
int8_t previous_marker = -1;
|
int8_t previous_marker = -1;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue