mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-07 12:58:13 +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:
parent
b40c91fefd
commit
13dc06c226
@ -1166,14 +1166,12 @@ DOIF_TimerTrigger ($)
|
|||||||
delete $hash->{triggertime}{$localtime};
|
delete $hash->{triggertime}{$localtime};
|
||||||
my $ret;
|
my $ret;
|
||||||
$hash->{helper}{cur_cmd_nr}="timer $localtime";
|
$hash->{helper}{cur_cmd_nr}="timer $localtime";
|
||||||
if (ReadingsVal($pn,"mode","") ne "disabled") {
|
for (my $j=0; $j<$hash->{helper}{last_timer};$j++) {
|
||||||
for (my $j=0; $j<$hash->{helper}{last_timer};$j++) {
|
if ($hash->{localtime}{$j} == $localtime) {
|
||||||
if ($hash->{localtime}{$j} == $localtime) {
|
$hash->{timer}{$j}=1;
|
||||||
$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++) {
|
for (my $j=0; $j<$hash->{helper}{last_timer};$j++) {
|
||||||
if ($hash->{timer}{$j} == 1) {
|
if ($hash->{timer}{$j} == 1) {
|
||||||
$hash->{timer}{$j}=0;
|
$hash->{timer}{$j}=0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user