1
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-05-07 22:29:19 +00:00

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:
jpawlowski 2014-12-28 11:00:09 +00:00
parent 5fd83ae0ef
commit b3fc82ef2d

View File

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