mirror of
https://github.com/ttrftech/NanoVNA.git
synced 2025-12-06 03:31:59 +01:00
Revert marker SPAN callback changes
This commit is contained in:
parent
91cc17eb04
commit
3639b7bb14
3
ui.c
3
ui.c
|
|
@ -739,7 +739,8 @@ menu_marker_op_cb(int item, uint8_t data)
|
|||
{
|
||||
if (previous_marker == -1 || active_marker == previous_marker) {
|
||||
// if only 1 marker is active, keep center freq and make span the marker comes to the edge
|
||||
uint32_t span = get_sweep_frequency(ST_SPAN);
|
||||
uint32_t center = get_sweep_frequency(ST_CENTER);
|
||||
uint32_t span = center > freq ? center - freq : freq - center;
|
||||
set_sweep_frequency(ST_SPAN, span * 2);
|
||||
} else {
|
||||
// if 2 or more marker active, set start and stop freq to each marker
|
||||
|
|
|
|||
Loading…
Reference in a new issue