2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

bugfix hex2addr reported by Benjamin

git-svn-id: https://svn.fhem.de/fhem/trunk@1058 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
hotmaz 2011-10-08 16:43:00 +00:00
parent 34f5e8b2c5
commit 46ff32b03a

View File

@ -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
{