Skip to content

Commit cc7813d

Browse files
committed
Opravit zapinani nedetekovane spojky.
1 parent 115d178 commit cc7813d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/bloky/TBlokVyhybka.pas

+9-1
Original file line numberDiff line numberDiff line change
@@ -1615,7 +1615,15 @@ function TBlkVyhybka.MockInputs():TBlkVyhInputs;
16151615
Exit(TBlkVyhInputs.Create(isOn, isOff))
16161616
else if ((Self.StaveniMinus) and (Now > Self.VyhStav.staveniStart+EncodeTime(0, 0, _VYH_STAVENI_MOCK_SEC, 0))) then
16171617
Exit(TBlkVyhInputs.Create(isOff, isOn))
1618-
else
1618+
else if (Self.Poloha = TVyhPoloha.disabled) then begin
1619+
// proper booting of spojka
1620+
if (Self.VyhStav.polohaSave = TVyhPoloha.plus) then
1621+
Exit(TBlkVyhInputs.Create(isOn, isOff))
1622+
else if (Self.VyhStav.polohaSave = TVyhPoloha.minus) then
1623+
Exit(TBlkVyhInputs.Create(isOff, isOn))
1624+
else
1625+
Exit(TBlkVyhInputs.Create(isOff, isOff));
1626+
end else
16191627
Exit(TBlkVyhInputs.Create(isOff, isOff));
16201628
end;
16211629

0 commit comments

Comments
 (0)