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:
justme1968
2016-01-09 14:10:53 +00:00
parent f011b33575
commit 91d3b78833

View File

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