return undef on set ... interval

git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@2743 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
borisneubert
2013-02-16 14:29:23 +00:00
parent a53f3d252c
commit 1bb2cadb13

View File

@@ -581,7 +581,8 @@ OWDevice_Set($@)
} else { } else {
RemoveInternalTimer($hash); RemoveInternalTimer($hash);
$hash->{fhem}{interval}= $value; $hash->{fhem}{interval}= $value;
InternalTimer(int(gettimeofday())+$hash->{fhem}{interval}, "OWDevice_UpdateValues", $hash, 0) InternalTimer(int(gettimeofday())+$hash->{fhem}{interval}, "OWDevice_UpdateValues", $hash, 0);
return undef;
} }
} else { } else {
return "Unknown argument $cmdname, choose one of interval " . join(" ", @setters); return "Unknown argument $cmdname, choose one of interval " . join(" ", @setters);