mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
30_LIGHTIFY.pm: fixed \x00 in alias
git-svn-id: https://svn.fhem.de/fhem/trunk@10557 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
6e9823d26c
commit
021269adbf
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user