30_LIGHTIFY.pm: fixed \x00 in alias

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@10557 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme1968
2016-01-17 12:19:49 +00:00
parent e363cde5e5
commit 896bed9227

View File

@@ -429,6 +429,7 @@ LIGHTIFY_Parse($$)
my $g = (substr($hex,$i*$offset*2+2*34,2*1));
my $b = (substr($hex,$i*$offset*2+2*35,2*1));
my $alias = pack('H*', substr($hex,$i*$offset*2+2*37,2*16));
$alias =~ s/\x00//g;
my $has_w = (hex($type) & 0x02) ? 1: 0;
my $has_rgb = (hex($type) & 0x08) ? 1 : 0;