mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Merge remote-tracking branch 'refs/remotes/origin/Beta'
Former-commit-id: 21a4f0c17270e4823e29739f783cba78a1000c6d
This commit is contained in:
commit
9cd53ecfd0
@ -58,12 +58,6 @@ int LedDeviceAtmoOrb::write(const std::vector <ColorRgb> &ledValues) {
|
|||||||
int lastGreen = lastColorGreenMap[idx];
|
int lastGreen = lastColorGreenMap[idx];
|
||||||
int lastBlue = lastColorBlueMap[idx];
|
int lastBlue = lastColorBlueMap[idx];
|
||||||
|
|
||||||
// If last colors send are identical than last send return
|
|
||||||
if(lastRed == color.red && lastGreen == color.green && lastBlue == color.blue)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
// If color difference is higher than skipSmoothingDiff than we skip Orb smoothing (if enabled) and send it right away
|
// If color difference is higher than skipSmoothingDiff than we skip Orb smoothing (if enabled) and send it right away
|
||||||
if ((skipSmoothingDiff != 0 && useOrbSmoothing) && (abs(color.red - lastRed) >= skipSmoothingDiff || abs(color.blue - lastBlue) >= skipSmoothingDiff ||
|
if ((skipSmoothingDiff != 0 && useOrbSmoothing) && (abs(color.red - lastRed) >= skipSmoothingDiff || abs(color.blue - lastBlue) >= skipSmoothingDiff ||
|
||||||
abs(color.green - lastGreen) >= skipSmoothingDiff))
|
abs(color.green - lastGreen) >= skipSmoothingDiff))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user