From 1a264b684e3217f3cf4c597b0cf90bb9e525a6cd Mon Sep 17 00:00:00 2001 From: Uladzimir Karpenka Date: Mon, 27 Apr 2026 21:52:11 +0300 Subject: [PATCH] Fix demo spectrum at startup and frequency mismatch after STOP - Remove FillDemoSpectrum from FormCreate: spectrum no longer shows fake signal data before the transceiver is connected. - Add SaveStartupPreview to STOP path: startup.vfo_a now matches the device band cache so the display is consistent before and after clicking START on a fresh launch. Co-Authored-By: Claude Sonnet 4.6 --- MainForm.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MainForm.pas b/MainForm.pas index 5c41b87..5079b9a 100644 --- a/MainForm.pas +++ b/MainForm.pas @@ -1059,7 +1059,6 @@ begin FSpecView.SpecRange := FSpecRange; FSpecView.SpecGridStep := FSpecGridStep; FSpecView.WfFrameInterval := FWaterfallFrameInterval; - FSpecView.FillDemoSpectrum; FNetwork := THPSDRNetwork.Create; FNetwork.OnDeviceFound := OnDeviceFound; @@ -2587,8 +2586,9 @@ begin begin SaveCurrentBand; FSettings.SaveGlobal(FDevMAC, MakeGlobalSettings); - FSettings.Save; end; + FSettings.SaveStartupPreview(FVfoA, FVfoB, FSampleRate); + FSettings.Save; FSpecView.ResetSpectrumBuf; FSpecView.DrawSpectrum; PbSpectrum.Invalidate;