98_DOIF.pm: reading matched fixed

git-svn-id: https://svn.fhem.de/fhem/trunk@10672 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
damian-s
2016-01-30 22:54:43 +00:00
parent cf6aa0e427
commit b48db96de1

View File

@@ -920,7 +920,7 @@ sub CheckRegexpDoIf($$$$)
if ($notifyExp eq "") {
if ($cond ne "all") {
$c=$cond+1;
readingsSingleUpdate ($hash, "machted_event_c".$c."_".($i+1),"$events",0);
readingsSingleUpdate ($hash, "matched_event_c".$c."_".($i+1),"$events",0);
}
return 1;
}
@@ -934,7 +934,7 @@ sub CheckRegexpDoIf($$$$)
if ($found) {
if ($cond ne "all") {
$c=$cond+1;
readingsSingleUpdate ($hash, "machted_event_c".$c."_".($i+1),$s,0);
readingsSingleUpdate ($hash, "matched_event_c".$c."_".($i+1),$s,0);
}
return 1
}