Skip to content

Commit

Permalink
NAQP sends wrong exchange to caller (Coded by W7SST) (#87) (#88)
Browse files Browse the repository at this point in the history
the Exch1 value was not being set after the contest changed.
  • Loading branch information
w7sst authored Nov 1, 2022
2 parents c98a8fd + 6423efb commit ffba291
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Main.pas
Original file line number Diff line number Diff line change
Expand Up @@ -1026,6 +1026,8 @@ procedure TMainForm.SetMyExch1(const AExchType: TExchange1Type;
begin
// Format('invalid RST (%s)', [AValue]));
Ini.UserExchange1[SimContest] := Avalue;
Tst.Me.RST := StrToInt(Avalue.Replace('N', '9', [rfReplaceAll]));
Tst.Me.Exch1 := Avalue;
if BDebugExchSettings then Edit2.Text := Avalue; // testing only
end;
etOpName: // e.g. scCwt (David)
Expand All @@ -1034,6 +1036,7 @@ procedure TMainForm.SetMyExch1(const AExchType: TExchange1Type;
Ini.HamName:= Avalue;
Ini.UserExchange1[SimContest] := Avalue;
Tst.Me.OpName := Avalue;
Tst.Me.Exch1 := Avalue;
if BDebugExchSettings then Edit2.Text := Avalue; // testing only
end;
etFdClass: // e.g. scFieldDay (3A)
Expand Down

0 comments on commit ffba291

Please sign in to comment.