30_LIGHTIFY.pm: fix for nr_lighths == 0

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@10427 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme1968
2016-01-09 14:10:53 +00:00
parent b315288744
commit 0df65489b0

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;