From 46ff32b03a05ba5a74037f52fe1d90ede40f6df8 Mon Sep 17 00:00:00 2001 From: hotmaz <> Date: Sat, 8 Oct 2011 16:43:00 +0000 Subject: [PATCH] bugfix hex2addr reported by Benjamin git-svn-id: https://svn.fhem.de/fhem/trunk@1058 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/00_TUL.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fhem/FHEM/00_TUL.pm b/fhem/FHEM/00_TUL.pm index 6778ef2e7..122054e62 100644 --- a/fhem/FHEM/00_TUL.pm +++ b/fhem/FHEM/00_TUL.pm @@ -578,14 +578,14 @@ TUL_Attr(@) # The following section has been inspired by the EIB module from MrHouse project # written by Peter Sj?din peter@sjodin.net and Mike Pieper eibdmh@pieper-family.de # Code has been mainly changed to fit to the FHEM framework by Maz Rashid -# (to be honest the code had to be reworked very intensively de to the lack of code quality) +# (to be honest the code had to be reworked very intensively due the lack of code quality) # # Utility functions sub tul_hex2addr { my $str = lc($_[0]); if ($str =~ /([0-9a-f])([0-9a-f])([0-9a-f]{2})/) { - return (hex($1) << 12) | (hex($2) << 8) | hex($3); + return (hex($1) << 11) | (hex($2) << 8) | hex($3); } else {