CUL_HM:update fraction list for drop-down like temp

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@22762 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
martinp876 2020-09-12 10:09:18 +00:00
parent 87315675bd
commit d0f16c0309

View File

@ -4547,8 +4547,11 @@ sub CUL_HM_Set($@) {#+++++++++++++++++ set command+++++++++++++++++++++++++++++
($max,$step) = ($1,$2);
}
my @list = ();
my $f = 0;
($f) = map{(my $foo = $_) =~ s/.*\.//;length($foo)}($step) if ($step =~ m/\./);
for(my $i = $min;$i <= $max; $i += $step){
push @list,$i;
push @list,sprintf("%.${f}f",$i);
}
push @lst1,@list;
}