mirror of
https://git.vladimir.cc/vladimir/ewsdr.git
synced 2026-08-26 21:57:32 +00:00
Snap frequency to FM step on spectrum/waterfall click when Step is enabled
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+4
-1
@@ -4659,7 +4659,10 @@ var
|
||||
BandIdx: Integer;
|
||||
begin
|
||||
if PanelWidth <= 0 then Exit;
|
||||
StepHz := 100;
|
||||
if (FMode = MODE_FM) and FFMStepOn then
|
||||
StepHz := FM_STEP_HZ[FFMStepIdx]
|
||||
else
|
||||
StepHz := 100;
|
||||
ClickFreq := Round(FCenterFreq + (PixelX / PanelWidth - 0.5) * FSpanHz);
|
||||
ClickFreq := (ClickFreq div StepHz) * StepHz;
|
||||
if FActiveVfo = 0 then
|
||||
|
||||
Reference in New Issue
Block a user