mirror of
https://git.vladimir.cc/vladimir/ewsdr.git
synced 2026-08-25 20:27:33 +00:00
Fix CAT settings: load before connect, default TCP port 19090
- Settings.pas: add root-level SaveCATSettings/LoadCATSettings so CAT config is stored independently of device MAC. - MainForm.pas FormCreate: initialize CAT defaults, load from saved 'cat' JSON section, and apply immediately after InitCATEngine — so SettingsForm shows correct values before the transceiver connects. - MainForm.pas OnCATSettingsChange: always save to root 'cat' section (not only when device is connected) so changes persist immediately. - Default TCP CAT port changed from 4992 to 19090 everywhere. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+2
-2
@@ -1445,7 +1445,7 @@ begin
|
||||
|
||||
FCATTcpEn := TCheckBox.Create(Self);
|
||||
FCATTcpEn.Parent := Grp;
|
||||
FCATTcpEn.Caption := 'Enable TCP server (default port 4992)';
|
||||
FCATTcpEn.Caption := 'Enable TCP server (default port 19090)';
|
||||
FCATTcpEn.SetBounds(PAD, R1, 300, 22);
|
||||
FCATTcpEn.Font.Color := CLR_TEXT;
|
||||
FCATTcpEn.Font.Name := UI_FONT; FCATTcpEn.Font.Size := 9;
|
||||
@@ -1458,7 +1458,7 @@ begin
|
||||
Spin.Color := CLR_INPUT; Spin.Font.Color := CLR_INPUT_TEXT;
|
||||
Spin.Font.Name := UI_FONT; Spin.Font.Size := 9;
|
||||
Spin.MinValue := 1; Spin.MaxValue := 65535;
|
||||
Spin.Value := 4992;
|
||||
Spin.Value := 19090;
|
||||
Spin.OnChange := OnCATTcpChange;
|
||||
FCATTcpPort := Spin;
|
||||
end;
|
||||
|
||||
Reference in New Issue
Block a user