minor bugfixes for mode "function"

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@3069 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
markusbloch
2013-04-13 09:59:27 +00:00
parent 7c0b9f10d8
commit ee3e4b53b5

View File

@@ -126,8 +126,8 @@ PRESENCE_Define($$)
$hash->{MODE} = $2;
$hash->{helper}{call} = $3;
$hash->{TIMEOUT_NORMAL} = (defined($4) ? $4 : 30);
$hash->{TIMEOUT_PRESENT} = (defined($5) ? $5 : 30);
$hash->{TIMEOUT_NORMAL} = ($4 ne "" ? $4 : 30);
$hash->{TIMEOUT_PRESENT} = ($5 ne "" ? $5 : 30);
if($hash->{helper}{call} =~ /\|/)
{
@@ -725,7 +725,7 @@ PRESENCE_DoLocalFunctionScan($)
my $ret;
my $return;
Log GetLogLevel($name, 2), "PRESENCE_DoLocalFunctionScan: $string";
Log GetLogLevel($name, 5), "PRESENCE_DoLocalFunctionScan: $string";
$ret = AnalyzeCommandChain(undef, $call);