2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-07 06:48:43 +00:00

98_DOIF.pm: fixed: set timer in disabled mode

git-svn-id: https://svn.fhem.de/fhem/trunk@10985 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
damian-s 2016-03-03 17:25:24 +00:00
parent b40c91fefd
commit 13dc06c226

View File

@ -1166,14 +1166,12 @@ DOIF_TimerTrigger ($)
delete $hash->{triggertime}{$localtime};
my $ret;
$hash->{helper}{cur_cmd_nr}="timer $localtime";
if (ReadingsVal($pn,"mode","") ne "disabled") {
for (my $j=0; $j<$hash->{helper}{last_timer};$j++) {
if ($hash->{localtime}{$j} == $localtime) {
$hash->{timer}{$j}=1;
}
for (my $j=0; $j<$hash->{helper}{last_timer};$j++) {
if ($hash->{localtime}{$j} == $localtime) {
$hash->{timer}{$j}=1;
}
$ret=DOIF_Trigger ($hash,"");
}
$ret=DOIF_Trigger ($hash,"") if (ReadingsVal($pn,"mode","") ne "disabled");
for (my $j=0; $j<$hash->{helper}{last_timer};$j++) {
if ($hash->{timer}{$j} == 1) {
$hash->{timer}{$j}=0;