mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-12 02:39:57 +00:00
30_LIGHTIFY.pm: fix for nr_lighths == 0
git-svn-id: https://svn.fhem.de/fhem/trunk@10427 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
15704d9262
commit
075b3a1474
@ -412,6 +412,8 @@ LIGHTIFY_Parse($$)
|
||||
my $size = length($hex)/2;
|
||||
my $nr_lights = hex(substr($hex,2*9,2*1));
|
||||
|
||||
return undef if( !$nr_lights );
|
||||
|
||||
my $offset = ($size-11) / $nr_lights;
|
||||
|
||||
my $autocreated = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user