PHTV: Improve LED summary color calculation (Forum #235918)

git-svn-id: https://svn.fhem.de/fhem/trunk@7340 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
loredo
2014-12-28 11:00:09 +00:00
parent 838c6ca3fc
commit a6afda9b79

View File

@@ -2469,9 +2469,10 @@ sub PHTV_ReceiveCommand($$$) {
# to avoid huge color skips between LEDs
if (
(
$countLEDs > 0
&& $Hsum / $countLEDs -
$hsb->{h} < 4000
$countLEDs > 0 && abs(
$Hsum / $countLEDs -
$hsb->{h}
) < 4000
)
|| $countLEDs == 0
)