mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
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:
parent
d30a9cda5d
commit
90dc4577dc
@ -177,7 +177,7 @@ sub I2C_HDC1008_I2CRec ($$) {
|
|||||||
|
|
||||||
if ( $clientmsg->{direction} eq "i2cread" && defined($clientmsg->{received}) )
|
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;
|
I2C_HDC1008_UpdateTempHum ($hash, $clientmsg->{received}) if $clientmsg->{nbyte} == 4;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user