From 42bd31b9bcb8226d51bfd1bc89f188b3c311c3e3 Mon Sep 17 00:00:00 2001 From: gernot-h Date: Fri, 13 Nov 2020 19:44:16 +0000 Subject: [PATCH] 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 --- fhem/FHEM/52_I2C_HDC1008.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fhem/FHEM/52_I2C_HDC1008.pm b/fhem/FHEM/52_I2C_HDC1008.pm index 892d09861..3cecf561a 100644 --- a/fhem/FHEM/52_I2C_HDC1008.pm +++ b/fhem/FHEM/52_I2C_HDC1008.pm @@ -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; } }