2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +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:
justme-1968 2015-08-15 16:44:00 +00:00
parent 880f31c76b
commit 7b0440e410

View File

@ -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";
}
}
@ -442,8 +444,8 @@ CO20_flashread($)
my $name = $hash->{NAME};
# 40 30 30 31 31 52 45 43 4F 52 44 53 3F 0A 40 40 @0011RECORDS?.@@
#
# 40 30 30 31 31 52 45 43 4F 52 44 53 3F 0A 40 40 @0011RECORDS?.@@
#
# 40 30 30 31 32 4C 42 53 49 5A 45 3F 0A 40 40 40 @0012LBSIZE?.@@@
#
# 40 30 30 31 33 46 4C 53 54 4F 50 0A 40 40 40 40 @0013FLSTOP.@@@@