2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-14 22:10:47 +00:00

91_sequence.pm: fixes

git-svn-id: https://svn.fhem.de/fhem/trunk@7257 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2014-12-19 09:29:32 +00:00
parent c232d6c28b
commit b1c95a2a30

View File

@ -47,7 +47,7 @@ sequence_Define($$)
$hash->{RE} = $def[0]; $hash->{RE} = $def[0];
$hash->{IDX} = 0; $hash->{IDX} = 0;
$hash->{MAX} = int(@def); $hash->{MAX} = int(@def);
$hash->{STATE} = "initialized"; $hash->{STATE} = "active";
return undef; return undef;
} }
@ -83,6 +83,7 @@ sequence_Notify($$)
delete($hash->{EVENTS}); delete($hash->{EVENTS});
Log3 $ln, 5, "sequence $ln $tt"; Log3 $ln, 5, "sequence $ln $tt";
setReadingsVal($hash, "state", "active", TimeNow());
DoTrigger($ln, $tt); DoTrigger($ln, $tt);
$idx = 0; $idx = 0;