mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 12:38:37 +00:00
98_DOIF.pm: Timer: wdays 0 fixed, card: undefined $dim fixed
git-svn-id: https://svn.fhem.de/fhem/trunk@26703 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
5ae0ffbf8b
commit
c2d051b860
@ -2081,6 +2081,7 @@ DOIF_CheckTimers($$$$)
|
|||||||
my $intervaltimer;
|
my $intervaltimer;
|
||||||
|
|
||||||
$timer =~ s/\s//g;
|
$timer =~ s/\s//g;
|
||||||
|
|
||||||
($timer,$days)=SplitDoIf('|',$timer);
|
($timer,$days)=SplitDoIf('|',$timer);
|
||||||
$days="" if (!defined $days);
|
$days="" if (!defined $days);
|
||||||
($timer,$intervaltimer)=SplitDoIf(',',$timer);
|
($timer,$intervaltimer)=SplitDoIf(',',$timer);
|
||||||
@ -2151,7 +2152,7 @@ sub DOIF_getTime {
|
|||||||
$hash->{timer}{$nr}=0;
|
$hash->{timer}{$nr}=0;
|
||||||
$hash->{time}{$nr}=$time;
|
$hash->{time}{$nr}=$time;
|
||||||
$hash->{timeCond}{$nr}=$condition;
|
$hash->{timeCond}{$nr}=$condition;
|
||||||
$hash->{days}{$nr}=$days if ($days);
|
$hash->{days}{$nr}=$days if ($days ne "");
|
||||||
$hash->{timers}{$condition}.=" $nr " if ($trigger);
|
$hash->{timers}{$condition}.=" $nr " if ($trigger);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4897,7 +4898,9 @@ sub card
|
|||||||
if (!defined $value1[0]{value}) {
|
if (!defined $value1[0]{value}) {
|
||||||
return("");
|
return("");
|
||||||
}
|
}
|
||||||
|
if (!defined $dim) {
|
||||||
|
return("");
|
||||||
|
}
|
||||||
|
|
||||||
my $bheight=73;
|
my $bheight=73;
|
||||||
my $htrans=0;
|
my $htrans=0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user