mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-09 20:57:11 +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@23153 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
e39a9b93e9
commit
42bd31b9bc
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user