mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Merge pull request #621 from RickDB/Beta
AtmoOrb device - removed skip same color change Former-commit-id: 1aa4244c18b2b2c6b1cf7ac307620d41b8b57f32
This commit is contained in:
commit
a0b81e9d4c
@ -58,12 +58,6 @@ int LedDeviceAtmoOrb::write(const std::vector <ColorRgb> &ledValues) {
|
||||
int lastGreen = lastColorGreenMap[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 ((skipSmoothingDiff != 0 && useOrbSmoothing) && (abs(color.red - lastRed) >= skipSmoothingDiff || abs(color.blue - lastBlue) >= skipSmoothingDiff ||
|
||||
abs(color.green - lastGreen) >= skipSmoothingDiff))
|
||||
|
Loading…
Reference in New Issue
Block a user