mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
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:
parent
87315675bd
commit
d0f16c0309
@ -4547,8 +4547,11 @@ sub CUL_HM_Set($@) {#+++++++++++++++++ set command+++++++++++++++++++++++++++++
|
|||||||
($max,$step) = ($1,$2);
|
($max,$step) = ($1,$2);
|
||||||
}
|
}
|
||||||
my @list = ();
|
my @list = ();
|
||||||
|
my $f = 0;
|
||||||
|
($f) = map{(my $foo = $_) =~ s/.*\.//;length($foo)}($step) if ($step =~ m/\./);
|
||||||
|
|
||||||
for(my $i = $min;$i <= $max; $i += $step){
|
for(my $i = $min;$i <= $max; $i += $step){
|
||||||
push @list,$i;
|
push @list,sprintf("%.${f}f",$i);
|
||||||
}
|
}
|
||||||
push @lst1,@list;
|
push @lst1,@list;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user