Merge pull request #133 from Makuna/ClearToFix

ClearTo with first and last index doesn't handle a single pixel
This commit is contained in:
Michael Miller
2016-09-25 12:56:59 -07:00
committed by GitHub
3 changed files with 3 additions and 3 deletions

View File

@@ -8,7 +8,7 @@
"type": "git",
"url": "https://github.com/Makuna/NeoPixelBus"
},
"version": "2.2.2",
"version": "2.2.3",
"frameworks": "arduino",
"platforms": "*"
}

View File

@@ -1,5 +1,5 @@
name=NeoPixelBus by Makuna
version=2.2.2
version=2.2.3
author=Michael C. Miller (makuna@live.com)
maintainer=Michael C. Miller (makuna@live.com)
sentence=A library that makes controlling NeoPixels (WS2811, WS2812 & SK6812) and DotStars (ADA102) easy.

View File

@@ -211,7 +211,7 @@ public:
{
if (first < _countPixels &&
last < _countPixels &&
first < last)
first <= last)
{
uint8_t temp[T_COLOR_FEATURE::PixelSize];
uint8_t* pixels = _method.getPixels();