From e2affbb44045d51ae12009b95d40340ca9d10646 Mon Sep 17 00:00:00 2001 From: Uladzimir Karpenka Date: Mon, 27 Apr 2026 21:38:23 +0300 Subject: [PATCH] Fix frequency reset to 7115 MHz after start/stop or restart Save current band and global settings in the STOP path so the next START restores the frequency the user was on, not the hardcoded default. Co-Authored-By: Claude Sonnet 4.6 --- MainForm.pas | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/MainForm.pas b/MainForm.pas index 36ec917..5c41b87 100644 --- a/MainForm.pas +++ b/MainForm.pas @@ -2582,6 +2582,13 @@ begin FRXPacketCount := 0; FActiveDDC := 0; StatusBar1.Panels[3].Text := 'RX: waiting...'; + // Сохраняем текущую частоту/настройки чтобы следующий START восстановил их + if FDevConnected then + begin + SaveCurrentBand; + FSettings.SaveGlobal(FDevMAC, MakeGlobalSettings); + FSettings.Save; + end; FSpecView.ResetSpectrumBuf; FSpecView.DrawSpectrum; PbSpectrum.Invalidate;