AtmoOrb - removed skip same color change.

Former-commit-id: 399ad830d9ecad8bf8d1e62241744f15631f0515
This commit is contained in:
RickDB 2016-05-05 14:48:33 +02:00
parent cd0526a414
commit 3227a3125b

View File

@ -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))