mirror of
https://github.com/ttrftech/NanoVNA.git
synced 2025-12-06 03:31:59 +01:00
wip
This commit is contained in:
parent
e6035a5d96
commit
c91d1e638a
14
ui.c
14
ui.c
|
|
@ -1673,6 +1673,7 @@ ui_process_normal(void)
|
||||||
if (status & EVT_BUTTON_SINGLE_CLICK) {
|
if (status & EVT_BUTTON_SINGLE_CLICK) {
|
||||||
ui_mode_menu();
|
ui_mode_menu();
|
||||||
} else {
|
} else {
|
||||||
|
#if 0
|
||||||
do {
|
do {
|
||||||
if (active_marker >= 0 && markers[active_marker].enabled) {
|
if (active_marker >= 0 && markers[active_marker].enabled) {
|
||||||
if ((status & EVT_DOWN) && markers[active_marker].index > 0) {
|
if ((status & EVT_DOWN) && markers[active_marker].index > 0) {
|
||||||
|
|
@ -1688,6 +1689,19 @@ ui_process_normal(void)
|
||||||
}
|
}
|
||||||
status = btn_wait_release();
|
status = btn_wait_release();
|
||||||
} while (status != 0);
|
} while (status != 0);
|
||||||
|
#else
|
||||||
|
if (active_marker >= 0) {
|
||||||
|
if (status & EVT_DOWN) {
|
||||||
|
int i = marker_search_left(markers[active_marker].index);
|
||||||
|
if (i != -1)
|
||||||
|
markers[active_marker].index = i;
|
||||||
|
} else if (status & EVT_UP) {
|
||||||
|
int i = marker_search_right(markers[active_marker].index);
|
||||||
|
if (i != -1)
|
||||||
|
markers[active_marker].index = i;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
if (active_marker >= 0)
|
if (active_marker >= 0)
|
||||||
redraw_marker(active_marker, TRUE);
|
redraw_marker(active_marker, TRUE);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue