From 621e04a500ac8d982fc7a7ca4d73fabfe41b9334 Mon Sep 17 00:00:00 2001 From: nasseeder1 Date: Tue, 14 Apr 2020 19:33:25 +0000 Subject: [PATCH] 77_SMAEM: contrib 4.2.0 git-svn-id: https://svn.fhem.de/fhem/trunk@21683 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/DS_Starter/77_SMAEM.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fhem/contrib/DS_Starter/77_SMAEM.pm b/fhem/contrib/DS_Starter/77_SMAEM.pm index 308d7cf04..a4ea1b39b 100644 --- a/fhem/contrib/DS_Starter/77_SMAEM.pm +++ b/fhem/contrib/DS_Starter/77_SMAEM.pm @@ -486,6 +486,7 @@ sub SMAEM_DoParse ($) { my $length; my ($b,$c,$d,$e); # OBIS Klassen + no warnings qw(overflow portable); while (substr($hex,$i,8) ne "00000000" && $i<=($dl*2)) { $b = hex(substr($hex,$i,2)); $c = hex(substr($hex,$i+2,2)); @@ -501,6 +502,7 @@ sub SMAEM_DoParse ($) { $obis->{"1:".$c.".".$d.".".$e} = hex(substr($hex,$i+8,$length)); $i = $i + 8 + $length; } + use warnings; Log3 ($name, 5, "SMAEM $name - OBIS metrics identified:"); my @ui; # Array für "unknown items"