Skip to content
This repository has been archived by the owner on May 6, 2021. It is now read-only.

Commit

Permalink
Merge pull request #621 from RickDB/Beta
Browse files Browse the repository at this point in the history
AtmoOrb device - removed skip same color change

Former-commit-id: 1aa4244
  • Loading branch information
brindosch committed May 5, 2016
2 parents cd0526a + 3227a31 commit a0b81e9
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions libsrc/leddevice/LedDeviceAtmoOrb.cpp
Expand Up @@ -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))
Expand Down

0 comments on commit a0b81e9

Please sign in to comment.