mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
10_FBDECT.pm: fix discreteSat (Forum #112284)
git-svn-id: https://svn.fhem.de/fhem/trunk@22240 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
74463bfe77
commit
8d65f20260
@ -802,7 +802,7 @@ FBDECT_getDiscreteSat($$)
|
||||
my ($color, $saturation) = @_;
|
||||
my $satindex = 3;
|
||||
$color = "yellow" if(!$colordefaults{$color});
|
||||
my @discreteSat = (@{$colordefaults{$color}{sat}}, 9999);
|
||||
my @discreteSat = reverse (9999, @{$colordefaults{$color}{sat}});
|
||||
for(my $i=0; $i<3; $i++) {
|
||||
if($saturation <
|
||||
$discreteSat[$i] + ($discreteSat[$i+1]-$discreteSat[$i])/2 ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user