mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-23 20:52:13 +00:00
38_CO20: fixed missing initializations (by Markus M.) see forum: http://forum.fhem.de/index.php/topic,13166.msg322820.html#msg322820
git-svn-id: https://svn.fhem.de/fhem/trunk@9075 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
880f31c76b
commit
7b0440e410
@ -190,7 +190,9 @@ CO20_Connect($)
|
||||
Log3 $name, 3, "$name: CO20 device opened";
|
||||
|
||||
my $interval = AttrVal($name, "interval", 300);
|
||||
$interval = 60*5 if( !$interval );
|
||||
$hash->{retries} = AttrVal($name,"retries",3);
|
||||
$hash->{timeout} = AttrVal($name,"timeout",10);
|
||||
|
||||
$hash->{INTERVAL} = $interval;
|
||||
|
||||
RemoveInternalTimer($hash);
|
||||
@ -204,7 +206,7 @@ CO20_Connect($)
|
||||
CO20_Disconnect($hash);
|
||||
}
|
||||
} else {
|
||||
Log3 $name, 3, "$name: filed to find CO20 device";
|
||||
Log3 $name, 3, "$name: failed to find CO20 device";
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user