2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-14 05:46:35 +00:00

38_CO20.pm: fixed uninitialized value warning

git-svn-id: https://svn.fhem.de/fhem/trunk@7072 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2014-11-27 17:54:31 +00:00
parent 92d4da0009
commit 5ca7169b8e

View File

@ -81,7 +81,7 @@ CO20_Connect($)
$hash->{USB} = Device::USB->new() if( !$hash->{USB} );
if( $hash->{ID} =~ m/(\d.*):(\d.*)/ ) {
if( $hash->{ID} && $hash->{ID} =~ m/(\d.*):(\d.*)/ ) {
my $dirname = $1;
my $filename = $2;
delete $hash->{DEV};
@ -280,7 +280,8 @@ CO20_Attr($$$)
<h3>CO20</h3>
<ul>
Module for measuring air quality with usb sticks based on the AppliedSensor iAQ-Engine sensor.
Products currently know to work are the VOLTCRAFT CO-20 and the Sentinel Haus Institut RaumluftW&auml;chter.
Products currently know to work are the VOLTCRAFT CO-20, the Sentinel Haus Institut RaumluftW&auml;chter
and the VELUX Raumluftf&uuml;hler.<br>
Probably works with all devices recognized as iAQ Stick (0x03eb:0x2013).<br><br>
Notes: