From d1a7fe9c9955218958ff2cfb931e37f8f7d0f587 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Tue, 23 Jun 2020 12:30:43 +0000 Subject: [PATCH] 10_FBDECT.pm: fix discreteSat (Forum #112284) git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@22240 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/10_FBDECT.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FHEM/10_FBDECT.pm b/FHEM/10_FBDECT.pm index 2c6504e8b..b5129d693 100644 --- a/FHEM/10_FBDECT.pm +++ b/FHEM/10_FBDECT.pm @@ -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 ) {