mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-17 11:26:03 +00:00
49_SSCamSTRM: switch time increases with each adoptForTimer command
git-svn-id: https://svn.fhem.de/fhem/trunk@22488 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
39f707c8d1
commit
654935dc4a
@ -456,13 +456,9 @@ sub _setadoptForTimer { ## no critic "not used"
|
||||
|
||||
my $sdev;
|
||||
|
||||
if(!$odev) { # Step 1 -> erster Durchlauf ohne odef
|
||||
if(!$hash->{HELPER}{SWITCHED}) {
|
||||
$paref->{odev} = $hash->{LINKNAME}; # bisheriges adoptiertes Device in %params aufnehmen, InternalTimer mitgeben
|
||||
$hash->{HELPER}{SWITCHED} = $hash->{LINKNAME};
|
||||
} else {
|
||||
$paref->{odev} = $hash->{HELPER}{SWITCHED};
|
||||
}
|
||||
if(!$odev) { # Step 1 -> erster Durchlauf ohne odef
|
||||
$hash->{HELPER}{SWITCHED} = $hash->{LINKNAME} if(!$hash->{HELPER}{SWITCHED});
|
||||
$paref->{odev} = $hash->{HELPER}{SWITCHED}; # bisheriges adoptiertes Device in %params aufnehmen, InternalTimer mitgeben
|
||||
|
||||
} else { # Step 2 -> zweiter Durchlauf mit odef gesetzt
|
||||
my @a;
|
||||
|
Loading…
x
Reference in New Issue
Block a user