98_ping: Fix syntax errors on startup

git-svn-id: https://svn.fhem.de/fhem/trunk@10135 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
mattwire
2015-12-08 23:53:22 +00:00
parent 2e13fa1bda
commit 173c7a5efc

View File

@@ -63,7 +63,7 @@ sub ping_Define($$)
$hash->{TIMEOUT} = $timeout;
return "ERROR: mode must be one of tcp,udp,icmp" if ($hash->{MODE} !~ "tcp|udp|icmp");
return "ERROR: timeout must be 0 or higher." if (($hash->{timeout} !~ /^\d*$/) || ($hash->{timeout} < 0));
return "ERROR: timeout must be 0 or higher." if (($hash->{TIMEOUT} !~ /^\d*$/) || ($hash->{TIMEOUT} < 0));
$attr{$name}{"checkInterval"} = 10 if (!defined($attr{$name}{"checkInterval"}));