File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -342,11 +342,20 @@ procedure TBlkVyhybka.SaveStatus(ini_stat:TMemIniFile;const section:string);
342342
343343procedure TBlkVyhybka.Enable ();
344344var rcsaddr:TRCSAddr;
345+ i:Integer;
345346begin
346- if (Self.VyhSettings.RCSAddrs.Count < 4 ) then Exit;
347- for rcsaddr in Self.VyhSettings.RCSAddrs do
348- if (not RCSi.IsModule(rcsaddr.board)) then
349- Exit();
347+ if (Self.VyhSettings.RCSAddrs.Count < 4 ) then
348+ Exit();
349+ if (Self.detekcePolohy) then
350+ begin
351+ for rcsaddr in Self.VyhSettings.RCSAddrs do
352+ if (not RCSi.IsModule(rcsaddr.board)) then
353+ Exit();
354+ end else begin
355+ for i := 2 to Self.VyhSettings.RCSAddrs.Count-1 do
356+ if (not RCSi.IsModule(Self.VyhSettings.RCSAddrs[i].board)) then
357+ Exit();
358+ end ;
350359
351360 if (Self.detekcePolohy) then
352361 Self.VyhStav.poloha := none
You can’t perform that action at this time.
0 commit comments