98_HMtemplate:eliminate boot warning

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@12834 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
martinp876 2016-12-19 19:52:41 +00:00
parent 0208f7d328
commit f612c0d335

View File

@ -369,7 +369,7 @@ sub HMtemplate_SetFn($@) {#####################################################
if ($culHmRegDefLS->{$rN}){# template for short/long
next if($tType && $tType !~ m/peer-(Long|Short)/);
$tType = "peer-Long";
$lits = ":".join(",",(sort (keys %{$culHmRegDefLS->{$rN}{lit}}),$paramS)) if ($culHmRegDefLS->{$rN}{c} eq "lit");
$lits = ":".join(",",(sort(keys %{$culHmRegDefLS->{$rN}{lit}}),$paramS)) if ($culHmRegDefLS->{$rN}{c} eq "lit");
}
elsif ($culHmRegDef->{$rN}){
if($culHmRegDef->{$rN}{l} eq 3){
@ -380,7 +380,7 @@ sub HMtemplate_SetFn($@) {#####################################################
next if($tType && $tType ne "basic");
$tType = "basic";
}
$lits = ":".join(",",(sort (keys %{$culHmRegDef->{$rN}{lit}}),$paramS)) if ($culHmRegDef->{$rN}{c} eq "lit");
$lits = ":".join(",",(sort(keys %{$culHmRegDef->{$rN}{lit}}),$paramS)) if ($culHmRegDef->{$rN}{c} eq "lit");
}
else{
next;