52_I2C_HDC1008.pm: fix "PERL WARNING: Use of uninitialized value"

This fixes "PERL WARNING: Use of uninitialized value in concatenation
(.) or string at ./FHEM/52_I2C_HDC1008.pm line 180". The {type} element
seems to be completely unused in the rest of the code, no idea what the
intention of the original author was when adding it here.

Thanks to joco for reporting! (Forum: #115543)



git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@23153 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
gernot-h 2020-11-13 19:44:16 +00:00
parent d30a9cda5d
commit 90dc4577dc

View File

@ -177,7 +177,7 @@ sub I2C_HDC1008_I2CRec ($$) {
if ( $clientmsg->{direction} eq "i2cread" && defined($clientmsg->{received}) )
{
Log3 $hash, 5, "[$name] I2C_HDC1008_I2CRec received: $clientmsg->{type} $clientmsg->{received}";
Log3 $hash, 5, "[$name] I2C_HDC1008_I2CRec received: $clientmsg->{received}";
I2C_HDC1008_UpdateTempHum ($hash, $clientmsg->{received}) if $clientmsg->{nbyte} == 4;
}
}