mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
eliminates errors in the test routine of the attribute pollingIntervall
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@4484 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
cee762914f
commit
1e84b62ae1
@ -144,12 +144,12 @@ sub PIFACE_Attr(@) {
|
|||||||
if ($attrName eq "pollInterval") {
|
if ($attrName eq "pollInterval") {
|
||||||
if (!defined $attrVal) {
|
if (!defined $attrVal) {
|
||||||
RemoveInternalTimer($hash);
|
RemoveInternalTimer($hash);
|
||||||
} elsif ($attrVal !~ m/^(off|[1..10])$/) {
|
} elsif ($attrVal eq "off" || $attrVal ~~ [1..10]) {
|
||||||
|
PIFACE_GetUpdate($hash);
|
||||||
|
} else {
|
||||||
RemoveInternalTimer($hash);
|
RemoveInternalTimer($hash);
|
||||||
Log3($name, 3, "PIFACE $name attribute-value [$attrName] = $attrVal wrong");
|
Log3($name, 3, "PIFACE $name attribute-value [$attrName] = $attrVal wrong");
|
||||||
CommandDeleteAttr(undef, "$name pollInterval");
|
CommandDeleteAttr(undef, "$name pollInterval");
|
||||||
} else {
|
|
||||||
PIFACE_GetUpdate($hash);
|
|
||||||
}
|
}
|
||||||
} elsif ($attrName eq "defaultState") {
|
} elsif ($attrName eq "defaultState") {
|
||||||
if (!defined $attrVal){
|
if (!defined $attrVal){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user